perf: 支持日志写入文件

This commit is contained in:
xiaojunnuo
2025-06-03 18:16:35 +08:00
parent e15212bf49
commit 37edbf5824
2 changed files with 23 additions and 2 deletions
@@ -19,6 +19,12 @@ import path from 'path';
const env = process.env.NODE_ENV || 'development';
const development = {
midwayLogger: {
default: {
dir: './logs',
},
// ...
},
keys: 'certd',
koa: {
port: 7001,