Documentation ¶
Index ¶
Constants ¶
View Source
const ( // LogTimeFormat is the time format used in the log. // It is a modified version of RFC3339Nano that guarantees trailing // zeroes are not trimmed, taken from // https://github.com/golang/go/issues/19635 LogTimeFormat = "2006-01-02T15:04:05.000000000Z07:00" // PartialLogType signifies a log line that exceeded the buffer // length and needed to spill into a new line PartialLogType = "P" // FullLogType signifies a log line is full FullLogType = "F" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogLine ¶
type LogLine struct { Device string ParseLogType string Time time.Time Msg string CID string CName string }
LogLine describes the information for each line of a log
func GetLogFile ¶
GetLogFile returns an hp tail for a container given options
func NewJournaldLogLine ¶
NewJournaldLogLine creates a LogLine from the specified line from journald. Note that if withID is set, the first item of the message is considerred to be the container ID and set as such.
func NewLogLine ¶
NewLogLine creates a logLine struct from a container log string
func (*LogLine) String ¶
func (l *LogLine) String(options *LogOptions) string
String converts a log line to a string for output given whether a detail bool is specified.
Click to show internal directories.
Click to hide internal directories.