function levelTag(lvl: LogLevel, color?: boolean): string;
Defined in: logs/format.ts:109
生成紧凑形式的级别标签字符串(例如 [INF]、[WRN]、[ERR]、[OK]、[DBG])。
[INF]
[WRN]
[ERR]
[OK]
[DBG]
lvl
LogLevel
undefined
color
boolean
true
string
紧凑级别标签。