add env and labels to log context

Signed-off-by: Daniel Dao <dqminh@cloudflare.com>
This commit is contained in:
Daniel Dao
2015-08-11 11:27:19 +00:00
committed by Vincent Demeester
parent 8a71e005b4
commit 656cdbb0e9
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -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"
+2
View File
@@ -17,6 +17,8 @@ type Context struct {
ContainerImageID string
ContainerImageName string
ContainerCreated time.Time
ContainerEnv []string
ContainerLabels map[string]string
LogPath string
}