🔧 build(兼容): 添加报错日志

This commit is contained in:
luying
2022-11-14 11:57:42 +08:00
parent 458d0ab5fa
commit 5a19cb93b1
3 changed files with 29 additions and 5 deletions

View File

@@ -117,13 +117,11 @@ module.exports = {
'item': {
'type': 'file',
'filename': '/zyz_logs/item/log',
'pattern': 'yyyy-MM-dd-hh',
'alwaysIncludePattern': true,
'maxLogSize': 1048576,
'layout': {
'type': 'pattern',
'pattern': '%m',
'type': 'basic'
},
'backups': 240,
'backups': 5
}
},

View File

@@ -113,6 +113,15 @@ module.exports = {
'pattern': '%m',
},
'backups': 240,
},
'item': {
'type': 'file',
'filename': '/zyz_logs/item/log',
'maxLogSize': 1073741824,
'layout': {
'type': 'basic'
},
'backups': 5
}
},
@@ -168,6 +177,10 @@ module.exports = {
'ta': {
'appenders': ['console', 'ta'],
'level': 'info'
},
'item': {
'appenders': ['console', 'item'],
'level': 'info'
}
},

View File

@@ -113,6 +113,15 @@ module.exports = {
'pattern': '%m',
},
'backups': 240,
},
'item': {
'type': 'file',
'filename': '/zyz_logs/item/log',
'maxLogSize': 1073741824,
'layout': {
'type': 'basic'
},
'backups': 5
}
},
@@ -168,6 +177,10 @@ module.exports = {
'ta': {
'appenders': ['console', 'ta'],
'level': 'info'
},
'item': {
'appenders': ['console', 'item'],
'level': 'info'
}
},