Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { File string `json:"file" yaml:"file"` Level string `json:"level" yaml:"level"` Fields map[string]interface{} `json:"fields" yaml:"fields"` }
Configuration defines configuration for logging.
func (Configuration) BuildLogger ¶
func (cfg Configuration) BuildLogger() (*zap.Logger, error)
BuildLogger builds a new Logger based on the configuration.
Click to show internal directories.
Click to hide internal directories.