Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Level string `yaml:"level" default:"info" validate:"oneof=trace debug info error fatal panic"`
Target string `yaml:"target" default:"stdout" validate:"required,oneof=stdout stderr"`
Format string `yaml:"format" default:"console" validate:"oneof=json console"`
Caller bool `yaml:"caller" default:"true"`
Timestamp TimestampConfig `yaml:"timestamp" mapstructure:"timestamp"`
}
type TimestampConfig ¶
Click to show internal directories.
Click to hide internal directories.