Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONFormatter ¶
type JSONFormatter struct{}
func NewJSONFormatter ¶
func NewJSONFormatter() *JSONFormatter
type MsgPackFormatter ¶
type MsgPackFormatter struct{}
func NewMsgPackFormatter ¶
func NewMsgPackFormatter() *MsgPackFormatter
type PrettyFormatter ¶
type PrettyFormatter struct {
TimeFormat string
Theme *PrettyTheme
DisableColors bool
}
func NewPrettyFormatter ¶
func NewPrettyFormatter() *PrettyFormatter
func NewPrettyFormatterWithTheme ¶
func NewPrettyFormatterWithTheme(theme *PrettyTheme) *PrettyFormatter
type PrettyTheme ¶
type PrettyTheme struct {
Time StyleFunc
Level StyleFunc
Message StyleFunc
FieldKey StyleFunc
FieldValue StyleFunc
Error StyleFunc
ResetAll func() string // usado se o sistema de cor precisar reset manual
}
PrettyTheme define como estilizar cada parte do log.
func NoColorTheme ¶
func NoColorTheme() *PrettyTheme
NoColorTheme é um tema que não aplica nenhuma cor/estilo.
func TICDefaultTheme ¶
func TICDefaultTheme() *PrettyTheme
Click to show internal directories.
Click to hide internal directories.