Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProductionConsole ¶
func NewProductionConsoleConfig ¶
func NewProductionConsoleConfig(suppressTimestamps bool, logLevel string) (config zap.Config, err error)
NewProductionConsoleConfig is a reasonable production logging configuration. Logging is enabled at InfoLevel and above.
It uses a console encoder, writes to standard error, and enables sampling. Stacktraces are automatically included on logs of ErrorLevel and above.
func NewProductionConsoleEncoderConfig ¶
func NewProductionConsoleEncoderConfig(suppressTimestamps bool) zapcore.EncoderConfig
NewProductionConsoleEncoderConfig returns an opinionated EncoderConfig for production console environments.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.