forked from dcai/airnotifier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogging.ini-sample
57 lines (45 loc) · 1000 Bytes
/
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
[loggers]
keys=root,requests,web,app,general
[handlers]
keys=console,silent,accesslog,general
[formatters]
keys=default
[logger_root]
handlers=general
qualname=root
[logger_web]
propagate=0
handlers=accesslog
qualname=tornado.access
[logger_app]
handlers=general
qualname=tornado.application
[logger_general]
handlers=general
qualname=tornado.general
[logger_requests]
handlers=silent
qualname=requests.*
[handler_console]
class = StreamHandler
args = (sys.stdout,)
level = NOTSET
formatter = default
[handler_accesslog]
class = logging.FileHandler
level = NOTSET
formatter = default
args = ("/var/log/airnotifier/access.log", "w")
[handler_general]
class = logging.FileHandler
level = NOTSET
formatter = default
args = ("/var/log/airnotifier/app.log", "w")
[handler_silent]
class=StreamHandler
level=WARNING
args=(sys.stdout,)
[formatter_default]
datefmt = %s
class=logging.Formatter
format = %(asctime)s %(levelname)-1.1s [%(name)s][%(threadName)s][%(filename)s:%(lineno)s] %(message)s