diff --git a/trytond_logging.conf b/trytond_logging.conf new file mode 100644 index 0000000..d57da7a --- /dev/null +++ b/trytond_logging.conf @@ -0,0 +1,26 @@ +[formatters] +keys=simple + +[handlers] +keys=rotate,console + +[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/trytond/tryton.log', 'D', 1, 30) +formatter=simple + +[handler_console] +class=StreamHandler +formatter=simple +args=(sys.stdout,) + +[logger_root] +level=INFO +handlers=rotate,console