config: logging: defaults + definition as list

* Stdout logger as default logger
* Clearer keyword / value separation
* Allows multiple outlet definitions

BREAK CONFIG

fixes #20
fixes #19
This commit is contained in:
Christian Schwarz
2017-10-05 13:31:16 +02:00
parent 2764c95952
commit b95260f4b5
3 changed files with 223 additions and 151 deletions
+8 -4
View File
@@ -1,9 +1,11 @@
global:
logging:
stdout:
- outlet: stdout
level: warn
format: human
tcp:
- outlet: tcp
level: debug
format: json
net: tcp
@@ -13,8 +15,10 @@ global:
ca: sampleconf/random/logging/logserver.crt
cert: sampleconf/random/logging/client.crt
key: sampleconf/random/logging/client.key
syslog:
enable: true
- outlet: syslog
level: debug
format: logfmt
jobs: []