Browse code

Pass -log-opts map to logdrivers

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>

Ahmet Alp Balkan authored on 2015/05/19 01:50:14
Showing 2 changed files
... ...
@@ -1452,6 +1452,7 @@ func (container *Container) getLogger() (logger.Logger, error) {
1452 1452
 		return nil, fmt.Errorf("Failed to get logging factory: %v", err)
1453 1453
 	}
1454 1454
 	ctx := logger.Context{
1455
+		Config:        cfg.Config,
1455 1456
 		ContainerID:   container.ID,
1456 1457
 		ContainerName: container.Name,
1457 1458
 	}
... ...
@@ -10,6 +10,7 @@ type Creator func(Context) (Logger, error)
10 10
 
11 11
 // Context provides enough information for a logging driver to do its function
12 12
 type Context struct {
13
+	Config        map[string]string
13 14
 	ContainerID   string
14 15
 	ContainerName string
15 16
 	LogPath       string