1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Pass -log-opts map to logdrivers

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
This commit is contained in:
Ahmet Alp Balkan 2015-05-18 16:50:14 +00:00
parent 19ae59f910
commit 8b11592d69
2 changed files with 2 additions and 0 deletions

View file

@ -1452,6 +1452,7 @@ func (container *Container) getLogger() (logger.Logger, error) {
return nil, fmt.Errorf("Failed to get logging factory: %v", err)
}
ctx := logger.Context{
Config: cfg.Config,
ContainerID: container.ID,
ContainerName: container.Name,
}

View file

@ -10,6 +10,7 @@ type Creator func(Context) (Logger, error)
// Context provides enough information for a logging driver to do its function
type Context struct {
Config map[string]string
ContainerID string
ContainerName string
LogPath string