增加 log 图标样式

This commit is contained in:
whyour
2024-10-13 21:24:17 +08:00
parent 71dd82f74e
commit 4244502949
7 changed files with 25 additions and 9 deletions
+4 -4
View File
@@ -4,10 +4,10 @@ import config from '../config';
import path from 'path';
const levelMap: Record<string, string> = {
info: '🔵',
warn: '🟡',
error: '🔴',
debug: '🔶'
info: '\ue6f5',
warn: '\ue880',
error: '\ue602',
debug: '\ue67f'
}
const customFormat = winston.format.combine(