@ -60,6 +60,10 @@ func FromContext(ctx context.Context) *slog.Logger {
|
|||||||
return Logger()
|
return Logger()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func GetLevel() string {
|
||||||
|
return level.String()
|
||||||
|
}
|
||||||
|
|
||||||
func HandlerOptions() *slog.HandlerOptions {
|
func HandlerOptions() *slog.HandlerOptions {
|
||||||
return &slog.HandlerOptions{
|
return &slog.HandlerOptions{
|
||||||
AddSource: source,
|
AddSource: source,
|
||||||
|
Reference in New Issue
Block a user