Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IFormatter ¶
func GetNewFormatter ¶
func GetNewFormatter(formatterCfg config.FormatterConfig) IFormatter
type JSONFormatter ¶
type JSONFormatter struct {
// contains filtered or unexported fields
}
func NewJSONFormatter ¶
func NewJSONFormatter(formatterCfg config.FormatterConfig) *JSONFormatter
func (*JSONFormatter) FillRecord ¶
func (f *JSONFormatter) FillRecord(entry *message.Entry) *message.Record
type TextFormatter ¶
type TextFormatter struct {
EnableQuote bool
EnableQuoteEmptyFields bool
DisableColors bool
TimestampFormat string
// contains filtered or unexported fields
}
TextFormatter formats logs into text
func NewTextFormatter ¶
func NewTextFormatter(formatterCfg config.FormatterConfig) *TextFormatter
func (*TextFormatter) ColorRender ¶
func (f *TextFormatter) ColorRender(b *bytes.Buffer, entry *message.Entry)
func (*TextFormatter) ColorRenderV2 ¶
func (f *TextFormatter) ColorRenderV2(b *bytes.Buffer, entry *message.Entry)
type XMLFormatter ¶
type XMLFormatter struct {
TimestampFormat string
}
func NewXMLFormatter ¶
func NewXMLFormatter(formatterCfg config.FormatterConfig) *XMLFormatter
Click to show internal directories.
Click to hide internal directories.