Documentation
¶
Index ¶
Constants ¶
View Source
const ( LevelDebug = slog.LevelDebug LevelInfo = slog.LevelInfo LevelError = slog.LevelError LevelWarn = slog.LevelWarn DefaultLogLevel = "INFO" )
log levels.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JSONLogger ¶
JSONLogger represents custom logger in JSON format.
type Option ¶
type Option func(*JSONLogger) error
Option represents option function type.
func WithLogLevelName ¶
WithLogLevelName sets log level from level name, such as INFO.
Click to show internal directories.
Click to hide internal directories.