数数:日志模式用pinus-logger替代
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user