日志:处理日志保存数量、大小

This commit is contained in:
luying
2022-01-07 18:55:28 +08:00
parent e579457a39
commit f15b6319e3
6 changed files with 533 additions and 9 deletions
+5 -5
View File
@@ -61,11 +61,11 @@ module.exports = {
'pinus': {
'type': 'file',
'filename': '/zyz_logs/log4js/pinus-${opts:serverId}.log',
'maxLogSize': 1048576,
'maxLogSize': 1073741824,
'layout': {
'type': 'basic'
},
'backups': 5
'backups': 20
},
'pinus-admin': {
'type': 'file',
@@ -88,16 +88,16 @@ module.exports = {
'app': {
'type': 'file',
'filename': '/zyz_logs/sls/app.log',
'maxLogSize': 10485760,
'maxLogSize': 1073741824,
'layout': {
'type': 'basic'
},
'backups': 15
'backups': 20
},
'error': {
'type': 'file',
'filename': '/zyz_logs/sls/error.log',
'maxLogSize': 1048576,
'maxLogSize': 1073741824,
'layout': {
'type': 'basic'
},