-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlog.conf
More file actions
51 lines (41 loc) · 760 Bytes
/
Copy pathlog.conf
File metadata and controls
51 lines (41 loc) · 760 Bytes
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
[loggers]
keys=root,weibo,admin
[handlers]
keys=console,debug,info,error
[formatters]
keys=simple
[logger_root]
level=DEBUG
handlers=console
[logger_weibo]
level=DEBUG
handlers=console,debug,info,error
qualname=weibo
propagate=0
[logger_admin]
level=DEBUG
handlers=console,debug,info,error
qualname=admin
propagate=0
[handler_console]
class=StreamHandler
level=INFO
formatter=simple
args=(sys.stdout,)
[handler_debug]
class=FileHandler
level=DEBUG
formatter=simple
args=('log/debug.log', 'a')
[handler_info]
class=FileHandler
level=INFO
formatter=simple
args=('log/info.log', 'a')
[handler_error]
class=FileHandler
level=ERROR
formatter=simple
args=('log/error.log', 'a')
[formatter_simple]
format=%(asctime)s - %(name)s - %(levelname)s - %(message)s