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) 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.
Click to show internal directories.
Click to hide internal directories.