Files
gotenberg/pkg/gotenberg/internal/log/gcp.go
T
2026-03-27 16:28:45 +01:00

19 lines
292 B
Go

package log
import "log/slog"
func gcpSeverity(l slog.Level) string {
switch {
case l < slog.LevelInfo:
return "DEBUG"
case l < slog.LevelWarn:
return "INFO"
case l < slog.LevelError:
return "WARNING"
case l >= slog.LevelError:
return "ERROR"
default:
return "DEFAULT"
}
}