-
Notifications
You must be signed in to change notification settings - Fork 0
/
manager-config.yaml
35 lines (35 loc) · 1.07 KB
/
manager-config.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
---
# See https://docs.python.org/3/library/logging.config.html#configuration-dictionary-schema
logging:
version: 1
disable_existing_loggers: true
root:
# Configuring the default (root) logger is highly recommended
level: DEBUG
handlers: [console]
formatter: coloredFormatter
# loggers:
# main:
# handlers: [console]
# qualname: main
# propagate: false
# formatter: coloredFormatter
# level: DEBUG
handlers:
# logfile:
# class: logging.FileHandler
# filename: sample.log
# formatter: simpleFormatter
# # level: DEBUG
console:
class: logging.StreamHandler
stream: ext://sys.stdout
formatter: coloredFormatter
level: DEBUG
formatters:
simpleFormatter:
format: "%(asctime)s,%(msecs)03d %(levelname)s %(name)s:%(filename)s:%(funcName)s:%(lineno)s -- %(message)s"
coloredFormatter:
(): "coloredlogs.ColoredFormatter"
datefmt: "%H:%M:%S"
format: "%(asctime)s,%(msecs)03d %(levelname)s %(name)s:%(filename)s:%(funcName)s:%(lineno)s -- %(message)s"