fix(logger): colorize

This commit is contained in:
xilesun 2023-12-27 14:02:22 +08:00
parent 8633ec3735
commit 1c3b5c1645

View File

@ -26,7 +26,7 @@ export const getFormat = (format?: LoggerOptions['format']) => {
logFormat = winston.format.combine(stripColorFormat, winston.format.json({ deterministic: false })); logFormat = winston.format.combine(stripColorFormat, winston.format.json({ deterministic: false }));
break; break;
default: default:
return winston.format.combine(stripColorFormat, format as winston.Logform.Format); return winston.format.combine(format as winston.Logform.Format);
} }
return winston.format.combine(sortFormat, logFormat); return winston.format.combine(sortFormat, logFormat);
}; };