Documentation ¶
Overview ¶
Package zapconfigs provides a few more opinionated zap logger configurations beyond the ones provided by their package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDebugEncoderConfig ¶
func NewDebugEncoderConfig() zapcore.EncoderConfig
func NewDebugLogger ¶
NewDebugLogger provides a logger suitable for logging in production code, but at debug level. This and NewDefaultLogger both use "console" style encoding to ensure that they are interchangeable. If an error occurs during logger creation, then log.Fatal is used to report the error and exit.
func NewDefaultEncoderConfig ¶
func NewDefaultEncoderConfig() zapcore.EncoderConfig
func NewDefaultLogger ¶
NewDefaultLogger provides a human-readable logger suitable for production code. It logs at info level and excludes the caller and stack trace fields. This and NewDebugLogger both use "console" style encoding to ensure that they are interchangeable. If an error occurs during logger creation, then log.Fatal is used to report the error and exit.
Types ¶
This section is empty.