mirror of
https://github.com/docker/docs.git
synced 2026-03-30 07:48:52 +07:00
Also there is aux datastructure Copier which can copy lines from streams to Loggers Signed-off-by: Alexander Morozov <lk4d4@docker.com>
19 lines
337 B
Go
19 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
|
|
}
|