# Functions
JSONHandler is a LogHandlerFn shim for slog.NewJSONHandler.
NewDefaultEnvLogger creates new slog.Logger using sane default configuration and sets it as a default logger.
ParseFormat parses string into supported log handler function.
ParseFormatFromEnv turns LOG_FORMAT env variable into slog.Handler function using ParseLogFormat.
ParseFormat turns string into slog.Level using case-insensitive parser.
ParseLogLevelFromEnv turns LOG_LEVEL env variable into slog.Level using logic from ParseLogLevel.
No description provided by the author
No description provided by the author
TextHandler is a LogHandlerFn shim for slog.NewTextHandler.
WithHandlerFn can be used to provide slog.Handler lazily.
WithLeveler sets slog.HandlerOptions.Level.
WithOutput sets logger's output.
WithReplacer sets slog.HandlerOptions.ReplaceAttr.
WithShortSource sets slog.ReplaceAttr source file as short format.
WithSource sets slog.HandlerOptions.AddSource.