log.loglevel becomes log.level in configuration
This commit is contained in:
parent
e6bdfa1d29
commit
bb8a193244
72 changed files with 78 additions and 78 deletions
2
.github/ISSUE_TEMPLATE.md
vendored
2
.github/ISSUE_TEMPLATE.md
vendored
|
@ -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)
|
(paste your output here)
|
||||||
|
|
2
.github/ISSUE_TEMPLATE/Bug_report.md
vendored
2
.github/ISSUE_TEMPLATE/Bug_report.md
vendored
|
@ -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)
|
(paste your output here)
|
||||||
|
|
|
@ -317,7 +317,7 @@ func configureLogging(staticConfiguration *static.Configuration) {
|
||||||
// otherwise.
|
// otherwise.
|
||||||
var levelStr string
|
var levelStr string
|
||||||
if staticConfiguration.Log != nil {
|
if staticConfiguration.Log != nil {
|
||||||
levelStr = strings.ToLower(staticConfiguration.Log.LogLevel)
|
levelStr = strings.ToLower(staticConfiguration.Log.Level)
|
||||||
}
|
}
|
||||||
if levelStr == "" {
|
if levelStr == "" {
|
||||||
levelStr = "error"
|
levelStr = "error"
|
||||||
|
|
|
@ -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.
|
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
|
## Log Rotation
|
||||||
|
|
||||||
|
|
|
@ -152,7 +152,7 @@
|
||||||
Middlewares = ["foobar", "foobar"]
|
Middlewares = ["foobar", "foobar"]
|
||||||
|
|
||||||
[Log]
|
[Log]
|
||||||
LogLevel = "foobar"
|
Level = "foobar"
|
||||||
FilePath = "foobar"
|
FilePath = "foobar"
|
||||||
Format = "foobar"
|
Format = "foobar"
|
||||||
|
|
||||||
|
@ -205,7 +205,7 @@
|
||||||
[Tracing.Instana]
|
[Tracing.Instana]
|
||||||
LocalAgentHost = "foobar"
|
LocalAgentHost = "foobar"
|
||||||
LocalAgentPort = 42
|
LocalAgentPort = 42
|
||||||
LogLevel = "foobar"
|
Level = "foobar"
|
||||||
|
|
||||||
[HostResolver]
|
[HostResolver]
|
||||||
CnameFlattening = true
|
CnameFlattening = true
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
--log Traefik log settings (default "false")
|
--log Traefik log settings (default "false")
|
||||||
--log.filepath Traefik log file path. Stdout is used when omitted or empty
|
--log.filepath Traefik log file path. Stdout is used when omitted or empty
|
||||||
--log.format Traefik log format: json | common (default "common")
|
--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 Enable a metrics exporter (default "false")
|
||||||
--metrics.datadog DataDog metrics exporter type (default "false")
|
--metrics.datadog DataDog metrics exporter type (default "false")
|
||||||
--metrics.datadog.address DataDog's address (default "localhost:8125")
|
--metrics.datadog.address DataDog's address (default "localhost:8125")
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "ERROR"
|
level = "ERROR"
|
||||||
filePath = "traefik.log"
|
filePath = "traefik.log"
|
||||||
|
|
||||||
[accessLog]
|
[accessLog]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[serversTransport]
|
[serversTransport]
|
||||||
rootCAs = [ """{{ .CertContent }}""" ]
|
rootCAs = [ """{{ .CertContent }}""" ]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.web-secure]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[serversTransport]
|
[serversTransport]
|
||||||
insecureSkipVerify = true
|
insecureSkipVerify = true
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[serversTransport]
|
[serversTransport]
|
||||||
rootCAs = [ """{{ .CertContent }}""" ]
|
rootCAs = [ """{{ .CertContent }}""" ]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[serversTransport]
|
[serversTransport]
|
||||||
rootCAs = [ """{{ .CertContent }}""" ]
|
rootCAs = [ """{{ .CertContent }}""" ]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.http1]
|
[entryPoints.http1]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.http1]
|
[entryPoints.http1]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.web-secure]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.web-secure]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.web-secure]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.web-secure]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.web-secure]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.web-secure]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.web-secure]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.web-secure]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web-secure]
|
[entryPoints.web-secure]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[serversTransport]
|
[serversTransport]
|
||||||
# Use certificate in net/internal/testcert.go
|
# Use certificate in net/internal/testcert.go
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[serversTransport]
|
[serversTransport]
|
||||||
# Use certificate in net/internal/testcert.go
|
# Use certificate in net/internal/testcert.go
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -4,7 +4,7 @@ sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
filePath = "traefik.log"
|
filePath = "traefik.log"
|
||||||
logLevel = "ERROR"
|
level = "ERROR"
|
||||||
|
|
||||||
[accessLog]
|
[accessLog]
|
||||||
filePath = "access.log"
|
filePath = "access.log"
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[api]
|
[api]
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.tcp]
|
[entryPoints.tcp]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.tcp]
|
[entryPoints.tcp]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.tcp]
|
[entryPoints.tcp]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[serversTransport.forwardingTimeouts]
|
[serversTransport.forwardingTimeouts]
|
||||||
dialTimeout = "300ms"
|
dialTimeout = "300ms"
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[serversTransport]
|
[serversTransport]
|
||||||
rootCAs = [ """{{ .RootCertContent }}""" ]
|
rootCAs = [ """{{ .RootCertContent }}""" ]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[api]
|
[api]
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
filePath = "traefik.log"
|
filePath = "traefik.log"
|
||||||
|
|
||||||
[accessLog]
|
[accessLog]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[entryPoints]
|
[entryPoints]
|
||||||
[entryPoints.web]
|
[entryPoints.web]
|
||||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
||||||
sendAnonymousUsage = false
|
sendAnonymousUsage = false
|
||||||
|
|
||||||
[log]
|
[log]
|
||||||
logLevel = "DEBUG"
|
level = "DEBUG"
|
||||||
|
|
||||||
[serversTransport]
|
[serversTransport]
|
||||||
insecureSkipVerify=true
|
insecureSkipVerify=true
|
||||||
|
|
|
@ -58,7 +58,7 @@ func TestDo_globalConfiguration(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
config.Log = &types.TraefikLog{
|
config.Log = &types.TraefikLog{
|
||||||
LogLevel: "LogLevel",
|
Level: "Level",
|
||||||
FilePath: "/foo/path",
|
FilePath: "/foo/path",
|
||||||
Format: "json",
|
Format: "json",
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ func Test_doOnJSON(t *testing.T) {
|
||||||
"CheckNewVersion": true,
|
"CheckNewVersion": true,
|
||||||
"AccessLogsFile": "",
|
"AccessLogsFile": "",
|
||||||
"TraefikLogsFile": "",
|
"TraefikLogsFile": "",
|
||||||
"LogLevel": "ERROR",
|
"Level": "ERROR",
|
||||||
"EntryPoints": {
|
"EntryPoints": {
|
||||||
"http": {
|
"http": {
|
||||||
"Network": "",
|
"Network": "",
|
||||||
|
@ -97,7 +97,7 @@ func Test_doOnJSON(t *testing.T) {
|
||||||
"CheckNewVersion": true,
|
"CheckNewVersion": true,
|
||||||
"AccessLogsFile": "",
|
"AccessLogsFile": "",
|
||||||
"TraefikLogsFile": "",
|
"TraefikLogsFile": "",
|
||||||
"LogLevel": "ERROR",
|
"Level": "ERROR",
|
||||||
"EntryPoints": {
|
"EntryPoints": {
|
||||||
"http": {
|
"http": {
|
||||||
"Network": "",
|
"Network": "",
|
||||||
|
|
|
@ -18,7 +18,7 @@ const (
|
||||||
|
|
||||||
// TraefikLog holds the configuration settings for the traefik logger.
|
// TraefikLog holds the configuration settings for the traefik logger.
|
||||||
type TraefikLog struct {
|
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"`
|
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"`
|
Format string `json:"format,omitempty" description:"Traefik log format: json | common"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
# Optional
|
# Optional
|
||||||
# Default: "ERROR"
|
# Default: "ERROR"
|
||||||
#
|
#
|
||||||
# logLevel = "DEBUG"
|
# level = "DEBUG"
|
||||||
|
|
||||||
# Sets the filepath for the traefik log. If not specified, stdout will be used.
|
# Sets the filepath for the traefik log. If not specified, stdout will be used.
|
||||||
# Intermediate directories are created if necessary.
|
# Intermediate directories are created if necessary.
|
||||||
|
|
Loading…
Reference in a new issue