fix: correct log level hierarchy and enhance log filtering logic

This commit is contained in:
Tunglies
2025-08-08 23:30:24 +08:00
parent 319c5b84fa
commit 52e8e45daf
5 changed files with 90 additions and 25 deletions

View File

@@ -11,7 +11,7 @@ import dayjs from "dayjs";
// 最大日志数量
const MAX_LOG_NUM = 1000;
export type LogLevel = "warning" | "info" | "debug" | "error" | "all";
export type LogLevel = "debug" | "info" | "warning" | "error" | "all";
export interface ILogItem {
time?: string;

View File

@@ -7,7 +7,7 @@ import {
} from "@/services/cmds";
import dayjs from "dayjs";
export type LogLevel = "warning" | "info" | "debug" | "error" | "all";
export type LogLevel = "debug" | "info" | "warning" | "error" | "all";
export interface ILogItem {
time?: string;