feat(logs): add log level selection to tools ui (#3565)

This commit is contained in:
Meier Lukas
2025-07-17 10:43:13 +02:00
committed by GitHub
parent c00110e426
commit c4e5c3002b
12 changed files with 150 additions and 31 deletions

View File

@@ -0,0 +1,17 @@
export const logLevels = ["error", "warn", "info", "debug"] as const;
export type LogLevel = (typeof logLevels)[number];
export const logLevelConfiguration = {
error: {
prefix: "🔴",
},
warn: {
prefix: "🟡",
},
info: {
prefix: "🟢",
},
debug: {
prefix: "🔵",
},
} satisfies Record<LogLevel, { prefix: string }>;