Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultLevelKey = "level"
)
Variables ¶
View Source
var (
DefaultConsole = NewConsole()
)
View Source
var (
DefaultJson = NewJson()
)
Functions ¶
This section is empty.
Types ¶
type Console ¶
type Console struct { ColorMode color.Mode LevelBasedColorizer color.LevelBasedColorizer TimeLayout string LevelWidth int8 MinMessageWidth int16 MultiLineMessageAfterFields bool PrintGlobalLogger bool FieldValueFormatter ValueFormatter FieldSorter fields.KeySorter }
func NewConsole ¶
func NewConsole() *Console
type FieldValueFormatterAware ¶
type FieldValueFormatterAware interface { GetValueFormatter() ValueFormatter SetValueFormatter(ValueFormatter) }
type Formatter ¶
var (
Default Formatter = DefaultConsole
)
type SimpleValueFormatter ¶
type SimpleValueFormatter struct {
QuoteType QuoteType
}
func (*SimpleValueFormatter) FormatValue ¶
func (instance *SimpleValueFormatter) FormatValue(v interface{}, _ log.Provider) ([]byte, error)
type ValueFormatter ¶
var (
DefaultValueFormatter ValueFormatter = &SimpleValueFormatter{}
)
Click to show internal directories.
Click to hide internal directories.