common logging.yaml

This commit is contained in:
Devaev Maxim
2018-11-14 20:34:46 +03:00
parent e97975fc15
commit b690dbce44
8 changed files with 61 additions and 78 deletions

View File

@@ -73,26 +73,4 @@ kvmd:
state_poll: 1.0
logging:
version: 1
disable_existing_loggers: false
formatters:
console:
(): logging.Formatter
style: "{"
format: "{name:30.30} {levelname:>7} --- {message}"
handlers:
console:
level: DEBUG
class: logging.StreamHandler
stream: ext://sys.stdout
formatter: console
root:
level: INFO
handlers:
- console
# vim: syntax=yaml filetype=yaml
logging: !include logging.yaml

View File

@@ -74,26 +74,4 @@ kvmd:
state_poll: 1.0
logging:
version: 1
disable_existing_loggers: false
formatters:
console:
(): logging.Formatter
style: "{"
format: "{name:30.30} {levelname:>7} --- {message}"
handlers:
console:
level: DEBUG
class: logging.StreamHandler
stream: ext://sys.stdout
formatter: console
root:
level: INFO
handlers:
- console
# vim: syntax=yaml filetype=yaml
logging: !include logging.yaml

20
configs/kvmd/logging.yaml Normal file
View File

@@ -0,0 +1,20 @@
version: 1
disable_existing_loggers: false
formatters:
console:
(): logging.Formatter
style: "{"
format: "{name:30.30} {levelname:>7} --- {message}"
handlers:
console:
level: DEBUG
class: logging.StreamHandler
stream: ext://sys.stdout
formatter: console
root:
level: INFO
handlers:
- console