Logging configuration

Without any configuration, trytond write INFO messages to standard output.

Logs can be configured using a configparser-format file. The filename can be specified using trytond logconf parameter.


This example allows to write INFO messages on standard output and on a disk log file rotated every day.

keys: simple

keys: rotate, console

keys: root

format: %(asctime)s] %(levelname)s:%(name)s:%(message)s
datefmt: %a %b %d %H:%M:%S %Y

class: handlers.TimedRotatingFileHandler
args: ('/tmp/tryton.log', 'D', 1, 30)
formatter: simple

class: StreamHandler
formatter: simple
args: (sys.stdout,)

level: INFO
handlers: rotate, console