source: etherws/tags/release-1.3/logging.ini.sample @ 280

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