-
Notifications
You must be signed in to change notification settings - Fork 77
/
log_config.yml
45 lines (45 loc) · 1.08 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
version: 1
disable_existing_loggers: false
loggers:
core:
level: 'INFO'
propagate: true
handlers: ['stderr']
service_logger:
level: 'INFO'
propagate: true
handlers: ['file_service_logger']
workflow_logger:
level: 'WARNING'
propagate: true
handlers: ['file_workflow_logger']
formatters:
default:
format: "%(asctime)s.%(msecs)d %(levelname)s in '%(name)s'['%(module)s'] at line %(lineno)d: %(message)s"
datefmt: "%Y-%m-%d %H:%M:%S"
handlers:
file:
class: 'logging.FileHandler'
level: 'INFO'
formatter: 'default'
filename: '~/dp_agent.log'
stdout:
class: 'logging.StreamHandler'
level: 'INFO'
formatter: 'default'
stream: 'ext://sys.stdout'
stderr:
class: 'logging.StreamHandler'
level: 'INFO'
formatter: 'default'
stream: 'ext://sys.stderr'
file_service_logger:
class: 'logging.FileHandler'
level: 'INFO'
formatter: 'default'
filename: 'service.log'
file_workflow_logger:
class: 'logging.FileHandler'
level: 'INFO'
formatter: 'default'
filename: 'workflow.log'