Documentation ¶
Index ¶
Constants ¶
View Source
const ( StdoutLogOutput = "stdout" StderrLogOutput = "stderr" )
Variables ¶
This section is empty.
Functions ¶
func BuildLogger ¶
BuildLogger return new zap.Logger instance with given severity and debug settings
Types ¶
type Config ¶ added in v0.4.1
type Config struct { Level *Level `yaml:"level" required:"true" default:"info"` Output string `yaml:"output" default:"stdout"` }
Config represents a logging config.
type Level ¶ added in v0.4.1
type Level struct {
// contains filtered or unexported fields
}
Level represents a shifted zap logging level that is able to being constructed from YAML.
func NewLevelFromString ¶ added in v0.4.1
func (Level) MarshalText ¶ added in v0.4.6
func (*Level) UnmarshalYAML ¶ added in v0.4.1
Click to show internal directories.
Click to hide internal directories.