(level: LogLevel.LogLevel)
| 1 | import type * as LogLevel from "effect/LogLevel" |
| 2 | |
| 3 | export const LogLevelToSentry = (level: LogLevel.LogLevel) => { |
| 4 | switch (level) { |
| 5 | case "Debug": |
| 6 | return "debug" as const |
| 7 | case "Info": |
| 8 | return "info" as const |
| 9 | case "Warn": |
| 10 | return "warning" as const |
| 11 | case "Error": |
| 12 | return "error" as const |
| 13 | case "Fatal": |
| 14 | return "fatal" as const |
| 15 | } |
| 16 | return "log" as const |
| 17 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…