-
-
Notifications
You must be signed in to change notification settings - Fork 191
/
logging.ini-sample
59 lines (48 loc) · 1.15 KB
/
logging.ini-sample
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
53
54
55
56
57
58
59
[loggers]
keys=root,tornado_access,tornado_general,tornado_app
[logger_root]
handlers=main,console
qualname=root
[logger_tornado_access]
; tornado web access logger
propagate=0
handlers=accesslog,console
qualname=tornado.access
[logger_tornado_general]
; tornado web access logger
propagate=0
handlers=main,console
qualname=tornado.general
[logger_tornado_app]
; tornado web access logger
propagate=0
handlers=main,console
qualname=tornado.application
[handlers]
keys=console,silent,accesslog,main
[handler_console]
class = StreamHandler
args = (sys.stdout,)
formatter = default
level = DEBUG
[handler_accesslog]
level = NOTSET
formatter = default
# 2000 maxBytes 100 backups
class=handlers.TimedRotatingFileHandler
args=('/var/log/airnotifier/access.log', 'H', 24, 50)
[handler_main]
level = DEBUG
formatter = default
class=handlers.TimedRotatingFileHandler
args=('/var/log/airnotifier/main.log', 'H', 24, 50)
[handler_silent]
class=StreamHandler
level=WARNING
args=(sys.stdout,)
[formatters]
keys=default
[formatter_default]
datefmt = %s
class=logging.Formatter
format = %(asctime)s %(levelname)-1.1s [%(threadName)s][%(name)s][%(filename)s:%(lineno)s] %(message)s