数数:日志模式用pinus-logger替代

This commit is contained in:
luying
2022-05-23 21:19:49 +08:00
parent 874caa7bed
commit 8486d3fee8
5 changed files with 431 additions and 16 deletions

View File

@@ -1,7 +1,8 @@
module.exports = {
'appenders': {
'console': {
'type': 'console'
'type': 'console',
'prefix': '${opts:serverId}'
},
'con-log': {
'type': 'file',
@@ -102,6 +103,17 @@ module.exports = {
'type': 'basic'
},
'backups': 5
},
'ta': {
'type': 'file',
'filename': '/zyz_logs/ta/log',
'pattern': 'yyyy-MM-dd-hh',
'alwaysIncludePattern': true,
'layout': {
'type': 'pattern',
'pattern': '%m',
},
}
},
@@ -153,11 +165,12 @@ module.exports = {
'err': {
'appenders': ['console', 'error'],
'level': 'debug'
},
'ta': {
'appenders': ['console', 'ta'],
'level': 'info'
}
},
'prefix': '${opts:serverId} ',
'replaceConsole': true,
'lineDebug': false,
'errorStack': true