mirror of https://github.com/docker/docs.git
Merge pull request #13306 from ahmetalpbalkan/logopts-context
Pass --log-opts map to logdrivers
This commit is contained in:
commit
cbc122e8a7
|
@ -1452,6 +1452,7 @@ func (container *Container) getLogger() (logger.Logger, error) {
|
||||||
return nil, fmt.Errorf("Failed to get logging factory: %v", err)
|
return nil, fmt.Errorf("Failed to get logging factory: %v", err)
|
||||||
}
|
}
|
||||||
ctx := logger.Context{
|
ctx := logger.Context{
|
||||||
|
Config: cfg.Config,
|
||||||
ContainerID: container.ID,
|
ContainerID: container.ID,
|
||||||
ContainerName: container.Name,
|
ContainerName: container.Name,
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,7 @@ type Creator func(Context) (Logger, error)
|
||||||
|
|
||||||
// Context provides enough information for a logging driver to do its function
|
// Context provides enough information for a logging driver to do its function
|
||||||
type Context struct {
|
type Context struct {
|
||||||
|
Config map[string]string
|
||||||
ContainerID string
|
ContainerID string
|
||||||
ContainerName string
|
ContainerName string
|
||||||
LogPath string
|
LogPath string
|
||||||
|
|
Loading…
Reference in New Issue