Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JsonFormatter ¶
type JsonFormatter struct {
// contains filtered or unexported fields
}
func NewJsonFormatter ¶
func NewJsonFormatter() *JsonFormatter
func (*JsonFormatter) Format ¶
func (f *JsonFormatter) Format(entity *Entity) Buffer
type Level ¶
type Level string
Level is a log level.
type Syncer ¶
type Syncer interface {
// Name returns the syncer name.
Name() string
// Write writes the log entity.
Write(entity *Entity) error
// Close closes the syncer.
Close() error
}
Syncer writes log entities to a destination.
type TextFormatter ¶
type TextFormatter struct {
// contains filtered or unexported fields
}
func NewTextFormatter ¶
func NewTextFormatter(isSupportColor ...bool) *TextFormatter
func (*TextFormatter) Format ¶
func (f *TextFormatter) Format(entity *Entity) Buffer
Click to show internal directories.
Click to hide internal directories.