武将:修复创建获取武将皮肤问题

This commit is contained in:
luying
2022-05-09 23:22:02 +08:00
parent a90acfbc69
commit 6e8dce5d7b
3 changed files with 37 additions and 1 deletions

View File

@@ -23,6 +23,23 @@ export default (appInfo: EggAppInfo) => {
appSecret: '19f8d6272fbba17294513610ba67f21b'
};
config.customLogger = {
linkLogger: {
file: '/zyz_logs/web-server/link-log.log',
formatter(meta) {
return `[${meta.level}] [${meta.date}] ${meta.message}`;
},
},
};
config.logrotator = {
filesRotateBySize: [
'/zyz_logs/web-server/link-log.log',
],
maxFileSize: 1024,
};
// the return config will combines to EggAppConfig
return {
...defaultConfig(appInfo),