Documentation ¶
Index ¶
- func GetFromContext(ctx context.Context) *slog.Logger
- func LogLevel() slog.Level
- func NewContextWithLogger(ctx context.Context, logger *slog.Logger, args ...any) context.Context
- func NewLogger(ctx context.Context, serviceName, serviceVersion, logFormat string) (context.Context, *slog.Logger)
- func SetLogLevel(level slog.Level)
- type CleanupFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewContextWithLogger ¶
func SetLogLevel ¶
Types ¶
type CleanupFunc ¶
type CleanupFunc func()
Click to show internal directories.
Click to hide internal directories.