-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathlogging.conf
More file actions
66 lines (53 loc) · 1.12 KB
/
logging.conf
File metadata and controls
66 lines (53 loc) · 1.12 KB
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
60
61
62
63
64
65
66
[loggers]
keys=root,post
[logger_root]
level=DEBUG
handlers=console,debug_file,info_file,error_file
[logger_post]
level=DEBUG
handlers=post_file
propagate=1
qualname=post
[handlers]
keys=debug_file,info_file,console,error_file,post_file
[formatters]
keys=bare,simple,complex
[formatter_bare]
format=%(message)s
[formatter_simple]
format=%(asctime)s - %(levelname)s - %(message)s
[formatter_complex]
format=%(asctime)s - %(name)s - %(levelname)s - %(module)s : %(lineno)d - %(message)s
[handler_debug_file]
class=handlers.RotatingFileHandler
interval=midnight
backupCount=5
formatter=simple
level=DEBUG
args=('logs/debug.log',)
[handler_info_file]
class=handlers.RotatingFileHandler
interval=midnight
backupCount=5
formatter=simple
level=INFO
args=('logs/info.log',)
[handler_error_file]
class=handlers.RotatingFileHandler
interval=midnight
backupCount=5
formatter=simple
level=ERROR
args=('logs/error.log',)
[handler_post_file]
class=handlers.RotatingFileHandler
interval=midnight
backupCount=5
formatter=simple
level=DEBUG
args=('logs/post.log',)
[handler_console]
class=StreamHandler
formatter=bare
level=DEBUG
args=(sys.stdout,)