implement structured logging

This commit is contained in:
Markus Muellner
2022-06-30 19:37:10 +02:00
committed by Benj Fassbind
parent 0c749922c9
commit 8e62195eb5
21 changed files with 558 additions and 54 deletions
+6 -1
View File
@@ -47,6 +47,9 @@ func (s *ConfigSuite) TestSaveConfig(c *C) {
s.config.AzurePublishRoots = map[string]AzurePublishRoot{"test": {
Container: "repo"}}
s.config.LogLevel = "info"
s.config.LogFormat = "json"
err := SaveConfig(configname, &s.config)
c.Assert(err, IsNil)
@@ -131,7 +134,9 @@ func (s *ConfigSuite) TestSaveConfig(c *C) {
" }\n"+
" },\n"+
" \"AsyncAPI\": false,\n"+
" \"enableMetricsEndpoint\": false\n"+
" \"enableMetricsEndpoint\": false,\n"+
" \"logLevel\": \"info\",\n"+
" \"logFormat\": \"json\"\n"+
"}")
}