mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
14887e2e1f
Also there is aux datastructure Copier which can copy lines from streams to Loggers Signed-off-by: Alexander Morozov <lk4d4@docker.com>
18 lines
337 B
Go
18 lines
337 B
Go
package logger
|
|
|
|
import "time"
|
|
|
|
// Message is datastructure that represents record from some container
|
|
type Message struct {
|
|
ContainerID string
|
|
Line []byte
|
|
Source string
|
|
Timestamp time.Time
|
|
}
|
|
|
|
// Logger is interface for docker logging drivers
|
|
type Logger interface {
|
|
Log(*Message) error
|
|
Name() string
|
|
Close() error
|
|
}
|