Add GetLevel()

Signed-off-by: Jan Tytgat <jan.tytgat@corelayer.eu>
This commit is contained in:
Jan Tytgat
2025-04-28 22:02:20 +02:00
parent 08cde7c372
commit 8e65f81d94

View File

@ -60,6 +60,10 @@ func FromContext(ctx context.Context) *slog.Logger {
return Logger()
}
func GetLevel() string {
return level.String()
}
func HandlerOptions() *slog.HandlerOptions {
return &slog.HandlerOptions{
AddSource: source,