-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogging.conf
46 lines (33 loc) · 912 Bytes
/
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
44
45
# Note Expects 'logDir' passed in with location for file output.
#============================ formatters ======================================
[formatters]
keys=std,console
[formatter_std]
format=%(asctime)s [%(name)s:%(levelname)s] %(message)s
datefmt=
[formatter_console]
format=%(asctime)s %(levelname)s %(message)s
datefmt=%H:%M:%S
#============================ handlers ========================================
[handlers]
keys=std,console
[handler_std]
class=handlers.RotatingFileHandler
# args: filename, open mode, max file size, backup file count
args=('solserver.log', 'a', 20000000, 5)
formatter=std
[handler_console]
class=StreamHandler
args=()
formatter=console
#============================ loggers =========================================
[loggers]
keys=root,solserver
[logger_root]
level=ERROR
handlers=std
[logger_solserver]
level=INFO
handlers=std
propagate=0
qualname=solserver