logging

package
v0.0.0-...-83bfe62 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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

func NewTintSlogger(w io.Writer, level slog.Level, noColor, noTime bool) *slog.Logger

NewTintSlogger creates a new *slog.Logger with a tint handler.

func NewZerologLogger

func NewZerologLogger(w io.Writer, level zerolog.Level, noTime bool) zerolog.Logger

NewZerologLogger creates a new zerolog.Logger.

func NewZerologPrettyLogger

func NewZerologPrettyLogger(w io.Writer, level zerolog.Level, noColor, noTime bool) zerolog.Logger

NewZerologPrettyLogger creates a new zerolog.Logger with a pretty console writer.

Types

This section is empty.

Directories

Path Synopsis
Package tslog provides a tinted structured logging implementation.
Package tslog provides a tinted structured logging implementation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL