-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogging.conf
More file actions
32 lines (32 loc) · 724 Bytes
/
logging.conf
File metadata and controls
32 lines (32 loc) · 724 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
###############################################
[loggers]
keys=root,logfile
[logger_root]
level=DEBUG
handlers=hand01,hand03
[logger_logfile]
handlers=hand01,hand03
qualname=example01
propagate=0
###############################################
[handlers]
keys=hand01,hand03
[handler_hand01]
class=StreamHandler
level=DEBUG
formatter=form02
args=(sys.stderr,)
[handler_hand03]
class=handlers.RotatingFileHandler
level=DEBUG
formatter=form02
args=('access.log', 'a', 10*1024*1024, 5)
###############################################
[formatters]
keys=form01,form02
[formatter_form01]
format=%(asctime)s %(levelname)s %(message)s
datefmt=%d %b %Y %H:%M:%S
[formatter_form02]
format=%(asctime)s %(levelname)s %(message)s
datefmt=