trytond/trytond_log.conf

30 lines
585 B
Plaintext
Raw Normal View History

# /etc/tryton/trytond_log.conf - Logging configuration file for Tryton Server (trytond)
#
# Copyright (c) 2016 Mathias Behrle <mbehrle@m9s.biz>
#
# This file contains settings for trytond to rotate logs daily and
# to keep 30 logs.
[database]
[formatters]
keys=simple
[handlers]
keys=rotate
[loggers]
keys=root
[formatter_simple]
format=%(asctime)s] %(levelname)s:%(name)s:%(message)s
datefmt=%a %b %d %H:%M:%S %Y
[handler_rotate]
class=handlers.TimedRotatingFileHandler
args=('/var/log/tryton/trytond.log', 'D', 1, 30)
formatter=simple
[logger_root]
level=INFO
handlers=rotate