Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultOutput ¶
type DefaultOutput struct {
// contains filtered or unexported fields
}
DefaultOutput provides logs and metadata in human readable format
func (*DefaultOutput) FormatAndPrintln ¶
func (o *DefaultOutput) FormatAndPrintln(ts time.Time, lbls loghttp.LabelSet, maxLabelsLen int, line string)
Format a log entry in a human readable format
type JSONLOutput ¶
type JSONLOutput struct {
// contains filtered or unexported fields
}
JSONLOutput prints logs and metadata as JSON Lines, suitable for scripts
func (*JSONLOutput) FormatAndPrintln ¶
func (o *JSONLOutput) FormatAndPrintln(ts time.Time, lbls loghttp.LabelSet, maxLabelsLen int, line string)
Format a log entry as json line
type LogOutput ¶
type LogOutput interface {
FormatAndPrintln(ts time.Time, lbls loghttp.LabelSet, maxLabelsLen int, line string)
}
LogOutput is the interface any output mode must implement
func NewLogOutput ¶
NewLogOutput creates a log output based on the input mode and options
type LogOutputOptions ¶
LogOutputOptions defines options supported by LogOutput
Click to show internal directories.
Click to hide internal directories.