-
-
Notifications
You must be signed in to change notification settings - Fork 190
/
logging.ini-syslog
52 lines (42 loc) · 1.22 KB
/
logging.ini-syslog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[loggers]
keys=root,tornado_access,tornado_general,tornado_app
[logger_root]
handlers=syslog,console
qualname=root
[logger_tornado_access]
; tornado web access logger
propagate=0
handlers=syslog,console
qualname=tornado.access
[logger_tornado_general]
; tornado web access logger
propagate=0
handlers=syslog,console
qualname=tornado.general
[logger_tornado_app]
; tornado web access logger
propagate=0
handlers=syslog,console
qualname=tornado.application
[handlers]
keys=syslog,console
[handler_syslog]
class = logging.handlers.SysLogHandler
formatter = loggly
args=('/dev/log',)
level = DEBUG
[handler_console]
class = StreamHandler
args = (sys.stdout,)
formatter = console
level = DEBUG
[formatters]
keys=loggly,console
[formatter_loggly]
datefmt = %s
class=logging.Formatter
format = Python: { "loggerName":"%(name)s", "timestamp":"%(asctime)s", "pathName":"%(pathname)s", "logRecordCreationTime":"%(created)f", "functionName":"%(funcName)s", "levelNo":"%(levelno)s", "lineNo":"%(lineno)d", "time":"%(msecs)d", "levelName":"%(levelname)s", "message":"%(message)s"}
[formatter_console]
datefmt = %s
class=logging.Formatter
format = %(asctime)s %(name)s %(levelname)-1.1s [%(threadName)s][%(name)s][%(filename)s:%(lineno)s] %(message)s