Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Encoding can be one "json" or "console". Defaults to "console" Encoding string `json:"encoding"` // Level configures the log level Level string `json:"level"` // Colors configures if color output should be enabled Colors *bool `json:"colors"` // time format TimeFormat string `json:"time_format"` }
func (*Config) CreateLogger ¶
func (c *Config) CreateLogger() *zap.SugaredLogger
Click to show internal directories.
Click to hide internal directories.