add json format support for traefik logs

This commit is contained in:
Marco Jantke 2017-09-21 10:42:02 +02:00 committed by Traefiker
parent 2cbf9cae71
commit 837db9a2d9
6 changed files with 84 additions and 15 deletions

View file

@ -412,6 +412,12 @@ func (b *Buckets) SetValue(val interface{}) {
*b = Buckets(val.(Buckets))
}
// TraefikLog holds the configuration settings for the traefik logger.
type TraefikLog struct {
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"`
}
// AccessLog holds the configuration settings for the access logger (middlewares/accesslog).
type AccessLog struct {
FilePath string `json:"file,omitempty" description:"Access log file path. Stdout is used when omitted or empty"`