Documentation
¶
Index ¶
- Variables
- func CallerFieldName(name string)
- func CallerMarshalFunc(fn func(pc uintptr, file string, line int) string)
- func CallerSkipFrameCount(count int)
- func ErrorMarshalFunc(fn func(err error) interface{})
- func Exit(v ...any)
- func InterfaceMarshalFunc(fn func(v interface{}) ([]byte, error))
- func LevelDebugValue(value string)
- func LevelErrorValue(value string)
- func LevelFieldMarshalFunc(fn func(l zerolog.Level) string)
- func LevelFieldName(name string)
- func LevelInfoValue(value string)
- func LevelWarnValue(value string)
- func Log() zerolog.Logger
- func MessageFieldName(name string)
- func New(w io.Writer) zerolog.Logger
- func NewList() *list
- func NewTable() *table
- func OneLine(format string, v ...any)
- func Printf(format string, v ...any)
- func Println(v ...any)
- func TimeFieldFormat(format string)
- func TimestampFieldName(name string)
- type Color
- type Colors
- type Logger
- type SortMode
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug = NewLogger(&defaultLogger, zerolog.DebugLevel)
View Source
var Error = NewLogger(&defaultLogger, zerolog.ErrorLevel)
View Source
var Info = NewLogger(&defaultLogger, zerolog.InfoLevel)
View Source
var Pretty pretty
View Source
var Warn = NewLogger(&defaultLogger, zerolog.WarnLevel)
Functions ¶
func CallerFieldName ¶
func CallerFieldName(name string)
func CallerSkipFrameCount ¶
func CallerSkipFrameCount(count int)
func ErrorMarshalFunc ¶
func ErrorMarshalFunc(fn func(err error) interface{})
func InterfaceMarshalFunc ¶
func LevelDebugValue ¶
func LevelDebugValue(value string)
func LevelErrorValue ¶
func LevelErrorValue(value string)
func LevelFieldMarshalFunc ¶
func LevelFieldName ¶
func LevelFieldName(name string)
func LevelInfoValue ¶
func LevelInfoValue(value string)
func LevelWarnValue ¶
func LevelWarnValue(value string)
func MessageFieldName ¶
func MessageFieldName(name string)
func TimeFieldFormat ¶
func TimeFieldFormat(format string)
func TimestampFieldName ¶
func TimestampFieldName(name string)
Types ¶
type Color ¶
type Color int
const ( Reset Color = iota Bold Faint Italic Underline BlinkSlow BlinkRapid ReverseVideo Concealed CrossedOut )
Base colors -- attributes in reality
Foreground colors
const ( FgHiBlack Color = iota + 90 FgHiRed FgHiGreen FgHiYellow FgHiBlue FgHiMagenta FgHiCyan FgHiWhite )
Foreground Hi-Intensity colors
Background colors
type SortMode ¶
type SortMode int
const ( // Asc sorts the column in Ascending order alphabetically. Asc SortMode = iota // AscNumeric sorts the column in Ascending order numerically. AscNumeric // Dsc sorts the column in Descending order alphabetically. Dsc // DscNumeric sorts the column in Descending order numerically. DscNumeric )
Click to show internal directories.
Click to hide internal directories.