Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ReadLogsNotSupported = errors.New("configured logging reader does not support reading")
Functions ¶
func RegisterLogDriver ¶
RegisterLogDriver registers the given logging driver builder with given logging driver name.
Types ¶
type Context ¶
type Context struct { Config map[string]string ContainerID string ContainerName string LogPath string }
Context provides enough information for a logging driver to do its function
type Copier ¶
type Copier struct {
// contains filtered or unexported fields
}
Copier can copy logs from specified sources to Logger and attach ContainerID and Timestamp. Writes are concurrent, so you need implement some sync in your logger
type Creator ¶
Creator is a method that builds a logging driver instance with given context
func GetLogDriver ¶
GetLogDriver provides the logging driver builder for a logging driver name.
Click to show internal directories.
Click to hide internal directories.