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)
|
||||
|
|
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)
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "ERROR"
|
||||
level = "ERROR"
|
||||
filePath = "traefik.log"
|
||||
|
||||
[accessLog]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[serversTransport]
|
||||
rootCAs = [ """{{ .CertContent }}""" ]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web-secure]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[serversTransport]
|
||||
insecureSkipVerify = true
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[serversTransport]
|
||||
rootCAs = [ """{{ .CertContent }}""" ]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[serversTransport]
|
||||
rootCAs = [ """{{ .CertContent }}""" ]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.http1]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.http1]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web-secure]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web-secure]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web-secure]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web-secure]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web-secure]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web-secure]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web-secure]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web-secure]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web-secure]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[serversTransport]
|
||||
# Use certificate in net/internal/testcert.go
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[serversTransport]
|
||||
# Use certificate in net/internal/testcert.go
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -4,7 +4,7 @@ sendAnonymousUsage = false
|
|||
|
||||
[log]
|
||||
filePath = "traefik.log"
|
||||
logLevel = "ERROR"
|
||||
level = "ERROR"
|
||||
|
||||
[accessLog]
|
||||
filePath = "access.log"
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[api]
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.tcp]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.tcp]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.tcp]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[serversTransport.forwardingTimeouts]
|
||||
dialTimeout = "300ms"
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[serversTransport]
|
||||
rootCAs = [ """{{ .RootCertContent }}""" ]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[api]
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
filePath = "traefik.log"
|
||||
|
||||
[accessLog]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.web]
|
||||
|
|
|
@ -3,7 +3,7 @@ checkNewVersion = false
|
|||
sendAnonymousUsage = false
|
||||
|
||||
[log]
|
||||
logLevel = "DEBUG"
|
||||
level = "DEBUG"
|
||||
|
||||
[serversTransport]
|
||||
insecureSkipVerify=true
|
||||
|
|
|
@ -58,7 +58,7 @@ func TestDo_globalConfiguration(t *testing.T) {
|
|||
}
|
||||
|
||||
config.Log = &types.TraefikLog{
|
||||
LogLevel: "LogLevel",
|
||||
Level: "Level",
|
||||
FilePath: "/foo/path",
|
||||
Format: "json",
|
||||
}
|
||||
|
|
|
@ -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": "",
|
||||
|
|
|
@ -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"`
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue