新服配置
This commit is contained in:
177
game-server/config/sq4/log4js.ts
Normal file
177
game-server/config/sq4/log4js.ts
Normal file
@@ -0,0 +1,177 @@
|
||||
module.exports = {
|
||||
'appenders': {
|
||||
'console': {
|
||||
'type': 'console'
|
||||
},
|
||||
'con-log': {
|
||||
'type': 'file',
|
||||
'filename': '/zyz_logs/log4js/con-log-${opts:serverId}.log',
|
||||
'pattern': 'connector',
|
||||
'maxLogSize': 104857600,
|
||||
'layout': {
|
||||
'type': 'basic'
|
||||
},
|
||||
'backups': 5
|
||||
},
|
||||
'rpc-log': {
|
||||
'type': 'file',
|
||||
'filename': '/zyz_logs/log4js/rpc-log-${opts:serverId}.log',
|
||||
'maxLogSize': 104857600,
|
||||
'layout': {
|
||||
'type': 'basic'
|
||||
},
|
||||
'backups': 5
|
||||
},
|
||||
'forward-log': {
|
||||
'type': 'file',
|
||||
'filename': '/zyz_logs/log4js/forward-log-${opts:serverId}.log',
|
||||
'maxLogSize': 104857600,
|
||||
'layout': {
|
||||
'type': 'basic'
|
||||
},
|
||||
'backups': 5
|
||||
},
|
||||
'rpc-debug': {
|
||||
'type': 'file',
|
||||
'filename': '/zyz_logs/log4js/rpc-debug-${opts:serverId}.log',
|
||||
'maxLogSize': 104857600,
|
||||
'layout': {
|
||||
'type': 'basic'
|
||||
},
|
||||
'backups': 5
|
||||
},
|
||||
'crash-log': {
|
||||
'type': 'file',
|
||||
'filename': '/zyz_logs/log4js/crash.log',
|
||||
'maxLogSize': 104857600,
|
||||
'layout': {
|
||||
'type': 'basic'
|
||||
},
|
||||
'backups': 5
|
||||
},
|
||||
'admin-log': {
|
||||
'type': 'file',
|
||||
'filename': '/zyz_logs/log4js/admin.log',
|
||||
'maxLogSize': 104857600,
|
||||
'layout': {
|
||||
'type': 'basic'
|
||||
},
|
||||
'backups': 5
|
||||
},
|
||||
'pinus': {
|
||||
'type': 'file',
|
||||
'filename': '/zyz_logs/log4js/pinus-${opts:serverId}.log',
|
||||
'maxLogSize': 1073741824,
|
||||
'layout': {
|
||||
'type': 'basic'
|
||||
},
|
||||
'backups': 20
|
||||
},
|
||||
'pinus-admin': {
|
||||
'type': 'file',
|
||||
'filename': '/zyz_logs/log4js/pinus-admin.log',
|
||||
'maxLogSize': 104857600,
|
||||
'layout': {
|
||||
'type': 'basic'
|
||||
},
|
||||
'backups': 5
|
||||
},
|
||||
'pinus-rpc': {
|
||||
'type': 'file',
|
||||
'filename': '/zyz_logs/log4js/pinus-rpc-${opts:serverId}.log',
|
||||
'maxLogSize': 104857600,
|
||||
'layout': {
|
||||
'type': 'basic'
|
||||
},
|
||||
'backups': 5
|
||||
},
|
||||
'app': {
|
||||
'type': 'file',
|
||||
'filename': '/zyz_logs/sls/app.log',
|
||||
'maxLogSize': 1073741824,
|
||||
'layout': {
|
||||
'type': 'basic'
|
||||
},
|
||||
'backups': 20
|
||||
},
|
||||
'error': {
|
||||
'type': 'file',
|
||||
'filename': '/zyz_logs/sls/error.log',
|
||||
'maxLogSize': 1073741824,
|
||||
'layout': {
|
||||
'type': 'basic'
|
||||
},
|
||||
'backups': 5
|
||||
},
|
||||
'ta': {
|
||||
'type': 'file',
|
||||
'filename': '/zyz_logs/ta/log',
|
||||
'pattern': 'yyyy-MM-dd-hh',
|
||||
'alwaysIncludePattern': true,
|
||||
'layout': {
|
||||
'type': 'pattern',
|
||||
'pattern': '%m',
|
||||
},
|
||||
'backups': 240,
|
||||
}
|
||||
},
|
||||
|
||||
'categories': {
|
||||
'default': {
|
||||
'appenders': ['console', 'pinus'],
|
||||
'level': 'debug'
|
||||
},
|
||||
'con-log': {
|
||||
'appenders': ['con-log'],
|
||||
'level': 'debug'
|
||||
},
|
||||
'rpc-log': {
|
||||
'appenders': ['rpc-log'],
|
||||
'level': 'debug'
|
||||
},
|
||||
'forward-log': {
|
||||
'appenders': ['forward-log'],
|
||||
'level': 'debug'
|
||||
},
|
||||
'rpc-debug': {
|
||||
'appenders': ['rpc-debug'],
|
||||
'level': 'debug'
|
||||
},
|
||||
'crash-log': {
|
||||
'appenders': ['crash-log'],
|
||||
'level': 'debug'
|
||||
},
|
||||
'admin-log': {
|
||||
'appenders': ['admin-log'],
|
||||
'level': 'debug'
|
||||
},
|
||||
'pinus-admin': {
|
||||
'appenders': ['pinus-admin'],
|
||||
'level': 'debug'
|
||||
},
|
||||
'pinus-rpc': {
|
||||
'appenders': ['pinus-rpc'],
|
||||
'level': 'debug'
|
||||
},
|
||||
'pinus': {
|
||||
'appenders': ['pinus'],
|
||||
'level': 'debug'
|
||||
},
|
||||
'info': {
|
||||
'appenders': ['console', 'app'],
|
||||
'level': 'debug'
|
||||
},
|
||||
'err': {
|
||||
'appenders': ['console', 'error'],
|
||||
'level': 'debug'
|
||||
},
|
||||
'ta': {
|
||||
'appenders': ['console', 'ta'],
|
||||
'level': 'info'
|
||||
}
|
||||
|
||||
},
|
||||
'replaceConsole': true,
|
||||
'lineDebug': false,
|
||||
'errorStack': true
|
||||
};
|
||||
Reference in New Issue
Block a user