日志:处理日志保存数量、大小
This commit is contained in:
@@ -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'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user