Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
Build builds the default zap logger, and sets the global zap logger to the configured logger instance.
func GetLogger ¶ added in v0.0.5
GetLogger returns an instance with some context, expressed as fields
func GetLoggerLevelValue ¶
GetLoggerLevelValue resolves logger level to zap level
func LevelEncoder ¶ added in v0.0.13
func LevelEncoder(raw []byte) zapcore.LevelEncoder
LevelEncoder takes a raw string (as []byte) and returnsthe corresponding zapcore.LevelEncoder
Types ¶
type EncodingConfig ¶ added in v0.0.13
type EncodingConfig struct { // Format Format string // LevelEncoder defines how level is encoded (colors, lowercase, etc.) LevelEncoder zapcore.LevelEncoder // lowercase }
EncodingConfig represents the needed encoding configuration for logger
Click to show internal directories.
Click to hide internal directories.