anyway/backend/logging_config.yaml
Remy Moll fa083a1080
Some checks failed
Build and deploy the backend to staging / Build and push image (pull_request) Successful in 2m9s
Run linting on the backend code / Build (pull_request) Failing after 30s
Run testing on the backend code / Build (pull_request) Failing after 1m41s
Build and deploy the backend to staging / Deploy to staging (pull_request) Successful in 18s
logging cleanup
2024-12-28 22:25:42 +01:00

29 lines
723 B
YAML

version: 1
disable_existing_loggers: False
formatters:
standard:
format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
handlers:
console:
class: logging.StreamHandler
formatter: standard
level: DEBUG
rich:
class: rich.logging.RichHandler
level: DEBUG
loki:
class: loki_logger_handler.loki_logger_handler.LokiLoggerHandler
level: DEBUG
formatter: standard
url: ${LOKI_URL}
labels:
app: anyway
environment: ${ENVIRONMENT}
loggers:
uvicorn:
handlers: [console, rich, loki]
level: DEBUG
propagate: False
root:
handlers: [console, rich, loki]
level: DEBUG