package
0.0.0-20241020225326-8300b35dc6cc
Repository: https://github.com/hhromic/go-toolkit.git
Documentation: pkg.go.dev

# Functions

NewSlogLogger creates an slog Logger that outputs to writer, using the specified log handler and the specified leveler implementation (for minimum logging level).

# Constants

HandlerAuto uses HandlerTint if the output writer is a terminal or HandlerText otherwise.
HandlerJSON is an slog JSONHandler which outputs logs in standard JSON format.
HandlerText is an slog TextHandler which outputs logs in key=value format.
HandlerTint is an slog Handler which outputs colorized logs in key=value format.

# Variables

ErrUnknownHandlerName is returned when an unknown slog handler name is used.

# Type aliases

Handler represents a supported slog handler.