Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TextFormatter the text formatter type TextFormatter string = "text" // JsonFormatter the json formatter type JsonFormatter string = "json" )
Variables ¶
This section is empty.
Functions ¶
func AppendRowTerminator ¶
AppendRowTerminator append a terminator at the end of the row if that does not exist
func InitDefaultFormatter ¶
func InitDefaultFormatter(t string)
InitDefaultFormatter init the global default Formatter by specified type
Types ¶
type Formatter ¶
type Formatter interface { // Serialize serialize the log content to []byte Serialize(c content.Content) ([]byte, error) }
Formatter the log formatter interface
Click to show internal directories.
Click to hide internal directories.