1
0
Fork 0

log.loglevel becomes log.level in configuration

This commit is contained in:
Julien Salleyron 2019-04-16 15:30:09 +02:00 committed by Traefiker Bot
parent e6bdfa1d29
commit bb8a193244
72 changed files with 78 additions and 78 deletions

View file

@ -58,7 +58,7 @@ func TestDo_globalConfiguration(t *testing.T) {
}
config.Log = &types.TraefikLog{
LogLevel: "LogLevel",
Level: "Level",
FilePath: "/foo/path",
Format: "json",
}

View file

@ -14,7 +14,7 @@ func Test_doOnJSON(t *testing.T) {
"CheckNewVersion": true,
"AccessLogsFile": "",
"TraefikLogsFile": "",
"LogLevel": "ERROR",
"Level": "ERROR",
"EntryPoints": {
"http": {
"Network": "",
@ -97,7 +97,7 @@ func Test_doOnJSON(t *testing.T) {
"CheckNewVersion": true,
"AccessLogsFile": "",
"TraefikLogsFile": "",
"LogLevel": "ERROR",
"Level": "ERROR",
"EntryPoints": {
"http": {
"Network": "",

View file

@ -18,7 +18,7 @@ const (
// TraefikLog holds the configuration settings for the traefik logger.
type TraefikLog struct {
LogLevel string `description:"Log level set to traefik logs." export:"true"`
Level string `description:"Log level set to traefik logs." export:"true"`
FilePath string `json:"file,omitempty" description:"Traefik log file path. Stdout is used when omitted or empty"`
Format string `json:"format,omitempty" description:"Traefik log format: json | common"`
}