Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultTemplate = "{{.ID}}"
DefaultTemplate defines the defaults template logger should use.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogFile ¶
type LogFile struct {
// contains filtered or unexported fields
}
LogFile is Logger implementation for default Docker logging.
func NewLogFile ¶
func NewLogFile(logPath string, capacity int64, maxFiles int, compress bool, marshaller logger.MarshalFunc, decodeFunc makeDecoderFunc, perms os.FileMode) (*LogFile, error)
NewLogFile creates new LogFile
func (*LogFile) ReadLogs ¶
func (w *LogFile) ReadLogs(config logger.ReadConfig, watcher *logger.LogWatcher)
ReadLogs decodes entries from log files and sends them the passed in watcher
Click to show internal directories.
Click to hide internal directories.