-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlogging.yaml
57 lines (44 loc) · 1.45 KB
/
logging.yaml
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
48
49
50
51
52
53
54
55
56
# Config for logging
# ------------------
# See http://docs.python.org/2.7/library/logging.config.html#configuration-dictionary-schema
logging:
version: 1
disable_existing_loggers: true
# Configuring the default (root) logger is highly recommended
root:
level: DEBUG
handlers: [console, logfile]
loggers:
activitysim:
level: DEBUG
handlers: [console, logfile]
propagate: false
orca:
level: WARNING
handlers: [console, logfile]
propagate: false
handlers:
logfile:
class: logging.FileHandler
filename: !!python/object/apply:activitysim.core.config.log_file_path ['activitysim.log']
mode: w
formatter: fileFormatter
level: NOTSET
console:
class: logging.StreamHandler
stream: ext://sys.stdout
formatter: simpleFormatter
#level: WARNING
level: !!python/object/apply:activitysim.core.mp_tasks.if_sub_task [WARNING, NOTSET]
formatters:
simpleFormatter:
class: logging.Formatter
#format: '%(processName)-10s %(levelname)s - %(name)s - %(message)s'
format: !!python/object/apply:activitysim.core.mp_tasks.if_sub_task [
'%(processName)-10s %(levelname)s - %(name)s - %(message)s',
'%(levelname)s - %(name)s - %(message)s']
datefmt: '%d/%m/%Y %H:%M:%S'
fileFormatter:
class: logging.Formatter
format: '%(asctime)s - %(levelname)s - %(name)s - %(message)s'
datefmt: '%d/%m/%Y %H:%M:%S'