Documentation ¶
Index ¶
- func NewProductionConsoleEncoderConfig(noColor, noTime bool) zapcore.EncoderConfig
- func NewProductionConsoleZapLogger(ws zapcore.WriteSyncer, level zapcore.Level, noColor, noTime, addCaller bool) *zap.Logger
- func NewTintSlogger(w io.Writer, level slog.Level, noColor, noTime bool) *slog.Logger
- func NewZerologLogger(w io.Writer, level zerolog.Level, noTime bool) zerolog.Logger
- func NewZerologPrettyLogger(w io.Writer, level zerolog.Level, noColor, noTime bool) zerolog.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProductionConsoleEncoderConfig ¶
func NewProductionConsoleEncoderConfig(noColor, noTime bool) zapcore.EncoderConfig
NewProductionConsoleEncoderConfig returns an opinionated zapcore.EncoderConfig for production console environments.
func NewProductionConsoleZapLogger ¶
func NewProductionConsoleZapLogger(ws zapcore.WriteSyncer, level zapcore.Level, noColor, noTime, addCaller bool) *zap.Logger
NewProductionConsoleZapLogger creates a new *zap.Logger with reasonable defaults for production console environments.
See NewProductionConsoleEncoderConfig for information on the default encoder configuration.
func NewTintSlogger ¶
NewTintSlogger creates a new *slog.Logger with a tint handler.
func NewZerologLogger ¶
NewZerologLogger creates a new zerolog.Logger.
func NewZerologPrettyLogger ¶
NewZerologPrettyLogger creates a new zerolog.Logger with a pretty console writer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.