mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 12:06:47 +00:00
fix(logger): colorize
This commit is contained in:
parent
8633ec3735
commit
1c3b5c1645
@ -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);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user