@ -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,
|
||||
|
Reference in New Issue
Block a user