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" env:"LIBRATE_LOG_LEVEL"` Target string `yaml:"target" default:"stdout" validate:"required,oneof=stdout stderr" env:"LIBRATE_LOG_TARGET"` Format string `yaml:"format" default:"console" validate:"oneof=json console" env:"LIBRATE_LOG_FMT"` Caller bool `yaml:"caller" default:"true" env:"LIBRATE_LOG_CALLER"` Timestamp TimestampConfig `yaml:"timestamp" mapstructure:"timestamp"` }
type TimestampConfig ¶
Click to show internal directories.
Click to hide internal directories.