Documentation ¶
Index ¶
Constants ¶
View Source
const (
LoggerNameContextKey domain.ContextKey = "LoggerNameContextKey"
)
Variables ¶
View Source
var ( DefaultLogger *slog.Logger DefaultLogLevel slog.Level LogHandlers map[slog.Level]slog.Handler = make(map[slog.Level]slog.Handler) Loggers map[domain.ContextKey]*slog.Logger = make(map[domain.ContextKey]*slog.Logger) )
View Source
var (
LoggerNameKey = "logger_name"
)
Functions ¶
func GetLoggerFromContext ¶
GetLoggerFromContext Gets the logger from context
func WithLoggerName ¶
Types ¶
type LogHandler ¶
Click to show internal directories.
Click to hide internal directories.