Line | |
---|
1 | # -*- coding: utf-8 -*- |
---|
2 | # see also: https://docs.python.org/library/logging.config.html |
---|
3 | |
---|
4 | [loggers] |
---|
5 | keys = root |
---|
6 | |
---|
7 | [handlers] |
---|
8 | keys = syslog |
---|
9 | |
---|
10 | [formatters] |
---|
11 | keys = syslog |
---|
12 | |
---|
13 | [logger_root] |
---|
14 | level = DEBUG |
---|
15 | handlers = syslog |
---|
16 | |
---|
17 | [handler_syslog] |
---|
18 | class = handlers.SysLogHandler |
---|
19 | level = DEBUG |
---|
20 | formatter = syslog |
---|
21 | args = ('/dev/log', handlers.SysLogHandler.LOG_USER) |
---|
22 | |
---|
23 | [formatter_syslog] |
---|
24 | class = logging.Formatter |
---|
25 | format = %(name)s [%(levelname)s] %(message)s |
---|
26 | datefmt = |
---|
Note: See
TracBrowser
for help on using the repository browser.