1# CHART docker web server log configuration
2
3[formatters]
4keys=simple
5
6[formatter_simple]
7format=%(asctime)s %(name)s %(levelname)s %(message)s
8datefmt=%Y-%m-%d %H:%M:%S
9
10[handlers]
11keys=root,access,error,user
12
13[handler_access]
14class=logging.handlers.TimedRotatingFileHandler
15args=('${CHART_LOG_DIR}/access.log', 'midnight', 1, 14)
16formatter=simple
17level=DEBUG
18
19[handler_error]
20class=logging.handlers.TimedRotatingFileHandler
21args=('${CHART_LOG_DIR}/error.log', 'midnight', 1, 14)
22formatter=simple
23level=DEBUG
24
25[handler_root]
26class=logging.handlers.TimedRotatingFileHandler
27args=('${CHART_LOG_DIR}/web.log', 'midnight', 1, 14)
28formatter=simple
29level=DEBUG
30
31[handler_user]
32class=logging.handlers.TimedRotatingFileHandler
33args=('${CHART_LOG_DIR}/user.log', 'midnight', 1, 14)
34formatter=simple
35level=DEBUG
36
37[loggers]
38keys=root,gunicorn.access,gunicorn.error,user
39
40[logger_root]
41level=DEBUG
42handlers=root
43# qualname=(root)
44
45[logger_gunicorn.access]
46level=DEBUG
47handlers=access
48qualname=gunicorn.access
49propagate=0
50
51[logger_gunicorn.error]
52level=DEBUG
53handlers=error
54qualname=gunicorn.error
55propagate=0
56
57[logger_user]
58level=DEBUG
59handlers=user
60propagate=0
61qualname=user