forked from dod-cyber-crime-center/kordesii
-
Notifications
You must be signed in to change notification settings - Fork 0
/
log_config.yml
47 lines (40 loc) · 1.16 KB
/
log_config.yml
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
version: 1
disable_existing_loggers: False # fixes issue with module level loggers
filters:
# This filter is necessary to use the "%(level_char)s" format variable.
level_char:
(): kordesii.logutil.LevelCharFilter
formatters:
simple:
format: "[%(level_char)s] (%(name)s): %(message)s"
error:
format: "<PID %(process)d:%(processName)s> [%(name)s:%(funcName)s():%(lineno)d]: %(message)s"
handlers:
console:
class: logging.StreamHandler
formatter: simple
filters: [level_char]
stream: ext://sys.stderr
error_file:
# Custom handler necessary to fix issues that can occur in Windows.
(): kordesii.logutil.MPRotatingFileHandler
level: WARNING
formatter: error
filename: "%LOCALAPPDATA%/kordesii/errors.log"
maxBytes: 10485760 # 10MB
backupCount: 3
encoding: utf8
null_handler:
class: logging.NullHandler
root:
level: INFO
handlers: [console, error_file]
## Uncomment this if you don't want to see function_tracing or IDA in your debug logs.
#loggers:
# kordesii.utils.function_tracing:
# propagate: False
# handlers: [null_handler]
#
# ida:
# propagate: False
# handlers: [null_handler]