Allow configuration of different log formats: text, json

Signed-off-by: Vlad Ungureanu <vladu@palantir.com>
This commit is contained in:
Vlad Ungureanu
2020-12-03 14:11:36 -05:00
parent 59a0667cff
commit f12b68cc86
3 changed files with 41 additions and 10 deletions

View File

@@ -138,6 +138,8 @@ type Debug struct {
UID int `toml:"uid"`
GID int `toml:"gid"`
Level string `toml:"level"`
// Format represents the logging format
Format string `toml:"format"`
}
// MetricsConfig provides metrics configuration