package
0.2.21
Repository: https://github.com/plainq/servekit.git
Documentation: pkg.go.dev

# Functions

New returns a pointer to a new instance of slog.Logger.
NewNop returns a new disabled logger that logs nothing.
ParseLevel takes the string and tries to parse it to the Level.
WithColor creates an Option that enables color formatting for log messages.
WithJSON creates an Option that enables JSON formatting for log messages.
WithLevel changes the underlying logging level of slog.Logger to the given on.
WithSource creates an Option that enables source code line number formatting for log messages.
WithTimeFormat creates an Option that change the time formatting for log messages.
WithWriter changes the writer for each leveled loggers of StdLog to the given on.

# Constants

ErrParseLevel indicates that string given to function ParseLevel can't be parsed to Level.

# Structs

Options represents the configuration options for the logging library.

# Type aliases

Error represents package level error related to logging work.
Option represents a function that modifies the configuration options for the logging library.