Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterLevel ¶
FilterLevel wraps an existing zap.Core but logs at a different level. This function can be used to create child loggers which should print only log levels at a different log level than the parent logger.
Types ¶
type Config ¶
type Config struct { LogLevelInput string `yaml:"level"` LogLevel zap.AtomicLevel }
Config for a zap logger
func (*Config) RegisterFlags ¶
RegisterFlags adds the flags required to config the server
func (*Config) Set ¶
Set updates the value of the allowed log level by implementing the flag.Value interface
func (*Config) SetDefaults ¶ added in v0.4.0
func (c *Config) SetDefaults()
Click to show internal directories.
Click to hide internal directories.