|
@@ -15,11 +15,16 @@ if (process.env.NODE_ENV === 'production') {
|
|
|
console.log('logDir', logDir);
|
|
|
export const LoggerConfig = {
|
|
|
format: winston.format.combine(
|
|
|
- winston.format.timestamp(),
|
|
|
- winston.format.ms(),
|
|
|
- nestWinstonModuleUtilities.format.nestLike('Meta-server', {
|
|
|
- prettyPrint: true,
|
|
|
+ winston.format.timestamp({
|
|
|
+ format: 'YYYY-MM-DD HH:mm:ss SSS',
|
|
|
}),
|
|
|
+ winston.format.ms(),
|
|
|
+ winston.format.printf(
|
|
|
+ (info) => `${info.timestamp} ${info.level}: ${info.message}`,
|
|
|
+ ),
|
|
|
+ // nestWinstonModuleUtilities.format.nestLike('Meta-server', {
|
|
|
+ // prettyPrint: false,
|
|
|
+ // }),
|
|
|
),
|
|
|
transports: [
|
|
|
new winston.transports.Console(),
|