-
Notifications
You must be signed in to change notification settings - Fork 0
/
logging.config
51 lines (43 loc) · 1.07 KB
/
logging.config
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
#logger.conf
###############################################
[loggers]
keys=root,water
[logger_root]
level=DEBUG
handlers=default_handler, rotate_file_handler, error_handler
[logger_water]
handlers=water_handler
qualname=water
propagate=0
###############################################
[handlers]
keys=default_handler,rotate_file_handler,error_handler,water_handler
[handler_default_handler]
class=StreamHandler
level=INFO
formatter=default_formatter
args=(sys.stdout,)
[handler_error_handler]
class=StreamHandler
level=WARNING
formatter=default_formatter
args=(sys.stderr,)
[handler_rotate_file_handler]
class=handlers.RotatingFileHandler
level=INFO
formatter=default_formatter
args=('log.log', 'a', 50*1024*1024, 5)
[handler_water_handler]
class=FileHandler
level=DEBUG
formatter=water_formatter
args=('water.log', 'a')
###############################################
[formatters]
keys=default_formatter, water_formatter
[formatter_default_formatter]
format=[%(asctime)s][%(levelname)s] %(message)s
#datefmt=%a, %d %b %Y %H:%M:%S
[formatter_water_formatter]
format=%(message)s
datefmt=