-
Notifications
You must be signed in to change notification settings - Fork 1
/
logging_config.ini
52 lines (38 loc) · 960 Bytes
/
logging_config.ini
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
#logger.conf
###############################################
[loggers]
keys=root,cse
[logger_root]
level=DEBUG
handlers=stream
[logger_cse]
handlers=stream,timedrt
qualname=cse
propagate=0
###############################################
[handlers]
keys=stream,timedrt,filert
[handler_stream]
class=StreamHandler
level=DEBUG
formatter=form01
args=(sys.stderr,)
[handler_filert]
class=handlers.RotatingFileHandler
level=DEBUG
formatter=form02
args=('log/socket.log', 'a', 50*1024*1024, 5)
[handler_timedrt]
class=handlers.TimedRotatingFileHandler
level=DEBUG
formatter=form01
args=('log/socket.log', 'd', 1 , 10)
###############################################
[formatters]
keys=form01,form02
[formatter_form01]
format=[%(asctime)s][%(filename)s][line:%(lineno)d][%(levelname)s] %(message)s
datefmt=%a, %d %b %Y %H:%M:%S
[formatter_form02]
format=[%(asctime)s][%(filename)s][line:%(lineno)d][%(levelname)s] %(message)s
datefmt=%a, %d %b %Y %H:%M:%S