-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ini
37 lines (29 loc) · 885 Bytes
/
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
# config.ini
# Change handler_consoleHandler (on screen log) and/or handler_fileHandler and/or logger_root (to file log) level variable to change log level
# Log levels: INFO, WARNING, ERROR, DEBUG
[handlers]
keys=consoleHandler,fileHandler
[handler_consoleHandler]
class=StreamHandler
level=INFO
formatter=simpleFormatter
args=(sys.stdout,)
[handler_fileHandler]
class=handlers.RotatingFileHandler
level=INFO
formatter=fileFormatter
args=('/pcap2csv/log/pcap2csv.log', 'a', 1000000, 5)
logdir=/pcap2csv/log/
[defaults]
chunk_size=90000
[loggers]
keys=root
[logger_root]
level=INFO
handlers=consoleHandler,fileHandler
[formatters]
keys=simpleFormatter,fileFormatter
[formatter_simpleFormatter]
format=%(asctime)s - %(name)s - %(levelname)s - %(message)s
[formatter_fileFormatter]
format=%(asctime)s - %(name)s - %(levelname)s - %(message)s