根据 chat 示例创建 game-server,支持分布式部署、域名访问、数据库连接和基础使用
This commit is contained in:
30
game-server/config/log4js.without.logfile.ts
Normal file
30
game-server/config/log4js.without.logfile.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
// 不写日志文件 示例配置文件。
|
||||
|
||||
module.exports = {
|
||||
'appenders': {
|
||||
'displayConsole': {
|
||||
'type': 'console'
|
||||
},
|
||||
// "other": {
|
||||
// "type": "file",
|
||||
// "filename": "${opts:base}/logs/${opts:serverId}.log",
|
||||
// "maxLogSize": 1048576,
|
||||
// "layout": {
|
||||
// "type": "basic"
|
||||
// },
|
||||
// "backups": 5
|
||||
// }
|
||||
},
|
||||
'categories': {
|
||||
'default': {
|
||||
'appenders': [
|
||||
/*"other",*/'displayConsole'
|
||||
],
|
||||
'level': 'debug'
|
||||
}
|
||||
},
|
||||
'replaceConsole': true,
|
||||
'prefix': '${opts:serverId} ',
|
||||
'lineDebug': false,
|
||||
'errorStack': true
|
||||
};
|
||||
Reference in New Issue
Block a user