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