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

@ -76,7 +76,7 @@ Add more configuration information here.
-->
### If applicable, please paste the log output at DEBUG level (`--logLevel=DEBUG` switch)
### If applicable, please paste the log output at DEBUG level (`--log.level=DEBUG` switch)
```
(paste your output here)

View file

@ -81,7 +81,7 @@ Add more configuration information here.
-->
### If applicable, please paste the log output in DEBUG level (`--logLevel=DEBUG` switch)
### If applicable, please paste the log output in DEBUG level (`--log.level=DEBUG` switch)
```
(paste your output here)

View file

@ -317,7 +317,7 @@ func configureLogging(staticConfiguration *static.Configuration) {
// otherwise.
var levelStr string
if staticConfiguration.Log != nil {
levelStr = strings.ToLower(staticConfiguration.Log.LogLevel)
levelStr = strings.ToLower(staticConfiguration.Log.Level)
}
if levelStr == "" {
levelStr = "error"

View file

@ -37,9 +37,9 @@ You can configure a file path instead using the `filePath` option.
By default, the logs use a text format (`common`), but you can also ask for the `json` format in the `format` option.
#### logLevel
#### log level
By default, the `logLevel` is set to `error`, but you can choose amongst `debug`, `panic`, `fatal`, `error`, `warn`, and `info`.
By default, the `level` is set to `error`, but you can choose amongst `debug`, `panic`, `fatal`, `error`, `warn`, and `info`.
## Log Rotation

View file

@ -152,7 +152,7 @@
Middlewares = ["foobar", "foobar"]
[Log]
LogLevel = "foobar"
Level = "foobar"
FilePath = "foobar"
Format = "foobar"
@ -205,7 +205,7 @@
[Tracing.Instana]
LocalAgentHost = "foobar"
LocalAgentPort = 42
LogLevel = "foobar"
Level = "foobar"
[HostResolver]
CnameFlattening = true

View file

@ -55,7 +55,7 @@
--log Traefik log settings (default "false")
--log.filepath Traefik log file path. Stdout is used when omitted or empty
--log.format Traefik log format: json | common (default "common")
--log.loglevel Log level set to traefik logs.
--log.level Log level set to traefik logs.
--metrics Enable a metrics exporter (default "false")
--metrics.datadog DataDog metrics exporter type (default "false")
--metrics.datadog.address DataDog's address (default "localhost:8125")

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "ERROR"
level = "ERROR"
filePath = "traefik.log"
[accessLog]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[serversTransport]
rootCAs = [ """{{ .CertContent }}""" ]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web-secure]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[serversTransport]
insecureSkipVerify = true

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[serversTransport]
rootCAs = [ """{{ .CertContent }}""" ]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[serversTransport]
rootCAs = [ """{{ .CertContent }}""" ]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.http1]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.http1]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web-secure]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web-secure]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web-secure]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web-secure]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web-secure]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web-secure]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web-secure]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web-secure]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web-secure]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[serversTransport]
# Use certificate in net/internal/testcert.go

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[serversTransport]
# Use certificate in net/internal/testcert.go

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -4,7 +4,7 @@ sendAnonymousUsage = false
[log]
filePath = "traefik.log"
logLevel = "ERROR"
level = "ERROR"
[accessLog]
filePath = "access.log"

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[api]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.tcp]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.tcp]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.tcp]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[serversTransport.forwardingTimeouts]
dialTimeout = "300ms"

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[serversTransport]
rootCAs = [ """{{ .RootCertContent }}""" ]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[api]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
filePath = "traefik.log"
[accessLog]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[entryPoints]
[entryPoints.web]

View file

@ -3,7 +3,7 @@ checkNewVersion = false
sendAnonymousUsage = false
[log]
logLevel = "DEBUG"
level = "DEBUG"
[serversTransport]
insecureSkipVerify=true

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"`
}

View file

@ -40,7 +40,7 @@
# Optional
# Default: "ERROR"
#
# logLevel = "DEBUG"
# level = "DEBUG"
# Sets the filepath for the traefik log. If not specified, stdout will be used.
# Intermediate directories are created if necessary.