transip-client/transip_client/logging/file.yml
Sonny Bakker 84558826fb
All checks were successful
ci/woodpecker/push/tests Pipeline was successful
Adapter refactor
Allows using different ways to retrieve hosts IP address
2025-05-03 13:51:49 +02:00

21 lines
493 B
YAML

version: 1
formatters:
simple:
format: '%(asctime)s %(levelname)s %(name)s %(message)s'
datefmt: '%Y-%m-%d %H:%M:%S'
handlers:
console:
level: DEBUG
formatter: simple
class: logging.StreamHandler
file:
level: INFO
formatter: simple
class: logging.handlers.RotatingFileHandler
filename: /app/transip_client/logging/logs/app.log
backupCount: 5
maxBytes: 50000000 # 50 mB
loggers:
transip_client:
handlers: [console, file]
level: INFO