jsonfile

package
v0.0.0-...-f2d3d7a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONLogFile

type JSONLogFile struct {
	// contains filtered or unexported fields
}

JSONLogFile is uses to log the container's stdout and stderr.

func NewJSONLogFile

func NewJSONLogFile(logPath string, perms os.FileMode) (*JSONLogFile, error)

NewJSONLogFile returns new JSONLogFile instance.

func (*JSONLogFile) Close

func (lf *JSONLogFile) Close() error

Close closes the file.

func (*JSONLogFile) ReadLogMessages

func (lf *JSONLogFile) ReadLogMessages(cfg *logger.ReadConfig) *logger.LogWatcher

ReadLogMessages will create goroutine to read the log message and send it to LogWatcher.

func (*JSONLogFile) WriteLogMessage

func (lf *JSONLogFile) WriteLogMessage(msg *logger.LogMessage) error

WriteLogMessage will write the LogMessage into the file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL