-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogging.conf
43 lines (35 loc) · 1.05 KB
/
logging.conf
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
[loggers]
keys=root
# note: hand_debug_rfile has been commented out (mostly for performance reasons)
[handlers]
keys=hand_console,hand_rfile
#,hand_debug_rfile
[formatters]
keys=form_console,form_rfile
[logger_root]
level=INFO
handlers=hand_console,hand_rfile
#,hand_debug_rfile
[handler_hand_console]
class=StreamHandler
level=INFO
formatter=form_console
args=(sys.stderr,)
#[handler_hand_debug_rfile]
#class=handlers.RotatingFileHandler
#level=DEBUG
#formatter=form_rfile
#args=('vns.debug.log', 'a', 5*1024*1024, 1) # filename, append, max size (B) per file, max # of files
[handler_hand_rfile]
class=handlers.RotatingFileHandler
level=INFO
formatter=form_rfile
args=('/var/log/vns/vns.log', 'a', 5*1024*1024, 20) # filename, append, max size (B) per file, max # of files
[formatter_form_console]
format=%(levelname)-8s %(module)s:%(funcName)s:%(lineno)d %(message)s
datefmt=
class=logging.Formatter
[formatter_form_rfile]
format=%(levelname)-8s %(asctime)s %(module)s:%(funcName)s:%(lineno)d %(message)s
datefmt=%a %Y-%b-%d %H:%M:%S
class=logging.Formatter