Spaces:
Paused
Paused
Upload logger.js
Browse files
logger.js
CHANGED
|
@@ -30,8 +30,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
| 30 |
logger.add(new winston.transports.Console({
|
| 31 |
format: winston.format.combine(
|
| 32 |
winston.format.colorize(),
|
| 33 |
-
timestampInBeijing(), // 使用自定义时间戳格式化函
|
| 34 |
-
winston.format.metadata({ fillExcept: ['message', 'level', 'timestamp', 'label'] }),
|
| 35 |
myFormat
|
| 36 |
),
|
| 37 |
}));
|
|
|
|
| 30 |
logger.add(new winston.transports.Console({
|
| 31 |
format: winston.format.combine(
|
| 32 |
winston.format.colorize(),
|
| 33 |
+
timestampInBeijing(), // 使用自定义时间戳格式化函
|
|
|
|
| 34 |
myFormat
|
| 35 |
),
|
| 36 |
}));
|