mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-26 18:17:24 +00:00
add env and labels to log context
Signed-off-by: Daniel Dao <dqminh@cloudflare.com>
This commit is contained in:
committed by
Vincent Demeester
parent
8a71e005b4
commit
656cdbb0e9
@@ -721,6 +721,8 @@ func (container *Container) getLogger() (logger.Logger, error) {
|
||||
ContainerImageID: container.ImageID,
|
||||
ContainerImageName: container.Config.Image,
|
||||
ContainerCreated: container.Created,
|
||||
ContainerEnv: container.Config.Env,
|
||||
ContainerLabels: container.Config.Labels,
|
||||
}
|
||||
|
||||
// Set logging file for "json-logger"
|
||||
|
||||
@@ -17,6 +17,8 @@ type Context struct {
|
||||
ContainerImageID string
|
||||
ContainerImageName string
|
||||
ContainerCreated time.Time
|
||||
ContainerEnv []string
|
||||
ContainerLabels map[string]string
|
||||
LogPath string
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user