Documentation ¶
Index ¶
- Constants
- type Option
- func WithColor(b bool) Option
- func WithErr(err io.Writer) Option
- func WithExcludeKeys(keys []string) Option
- func WithFielder(f formatter.Fielder) Option
- func WithFlatten(b bool) Option
- func WithFormatter(key string, f formatter.Formatter) Option
- func WithKeyFormatter(f formatter.Stringer) Option
- func WithLevelFilter(s string) Option
- func WithLevelFilters(s []string) Option
- func WithOut(out io.Writer) Option
- func WithPinOrder(order []string) Option
- func WithTimeFormat(timeFormat string) Option
- func WithVertical(b bool) Option
- type Writer
Constants ¶
View Source
const ( PinTimestamp = "timestamp" PinLevel = "level" PinCaller = "caller" PinMessage = "message" PinError = "error" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(w *Writer)
func WithExcludeKeys ¶
func WithFielder ¶ added in v0.3.0
func WithFlatten ¶ added in v0.3.0
func WithKeyFormatter ¶
func WithLevelFilter ¶
func WithLevelFilters ¶
func WithPinOrder ¶
func WithTimeFormat ¶
Override the time format, defaults to "15:04:05".
func WithVertical ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.