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
+4
View File
@@ -35,6 +35,8 @@ type ConfigStructure struct { // nolint: maligned
AzurePublishRoots map[string]AzurePublishRoot `json:"AzurePublishEndpoints"`
AsyncAPI bool `json:"AsyncAPI"`
EnableMetricsEndpoint bool `json:"enableMetricsEndpoint"`
LogLevel string `json:"logLevel"`
LogFormat string `json:"logFormat"`
}
// FileSystemPublishRoot describes single filesystem publishing entry point
@@ -112,6 +114,8 @@ var Config = ConfigStructure{
AzurePublishRoots: map[string]AzurePublishRoot{},
AsyncAPI: false,
EnableMetricsEndpoint: false,
LogLevel: "debug",
LogFormat: "default",
}
// LoadConfig loads configuration from json file