feat(logs): add log level selection to tools ui (#3565)
This commit is contained in:
17
packages/log/src/constants.ts
Normal file
17
packages/log/src/constants.ts
Normal 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 }>;
|
||||
Reference in New Issue
Block a user