log4js其他服配置

This commit is contained in:
luying
2022-05-24 11:20:17 +08:00
parent c0e8d0bd5a
commit 3f58896690
2 changed files with 30 additions and 6 deletions
+16 -4
View File
@@ -102,6 +102,17 @@ module.exports = {
'type': 'basic' 'type': 'basic'
}, },
'backups': 5 'backups': 5
},
'ta': {
'type': 'file',
'filename': '/zyz_logs/ta/log',
'pattern': 'yyyy-MM-dd-hh',
'alwaysIncludePattern': true,
'layout': {
'type': 'pattern',
'pattern': '%m',
},
} }
}, },
@@ -153,11 +164,12 @@ module.exports = {
'err': { 'err': {
'appenders': ['console', 'error'], 'appenders': ['console', 'error'],
'level': 'debug' 'level': 'debug'
}
}, },
'ta': {
'prefix': '${opts:serverId} ', 'appenders': ['console', 'ta'],
'level': 'info'
}
},
'replaceConsole': true, 'replaceConsole': true,
'lineDebug': false, 'lineDebug': false,
'errorStack': true 'errorStack': true
+16 -4
View File
@@ -102,6 +102,17 @@ module.exports = {
'type': 'basic' 'type': 'basic'
}, },
'backups': 5 'backups': 5
},
'ta': {
'type': 'file',
'filename': '/zyz_logs/ta/log',
'pattern': 'yyyy-MM-dd-hh',
'alwaysIncludePattern': true,
'layout': {
'type': 'pattern',
'pattern': '%m',
},
} }
}, },
@@ -153,11 +164,12 @@ module.exports = {
'err': { 'err': {
'appenders': ['console', 'error'], 'appenders': ['console', 'error'],
'level': 'debug' 'level': 'debug'
}
}, },
'ta': {
'prefix': '${opts:serverId} ', 'appenders': ['console', 'ta'],
'level': 'info'
}
},
'replaceConsole': true, 'replaceConsole': true,
'lineDebug': false, 'lineDebug': false,
'errorStack': true 'errorStack': true