...
|
...
|
@@ -76,7 +76,9 @@ module.exports = { |
|
|
name: 'info',
|
|
|
level: 'info',
|
|
|
filename: 'logs/info.log',
|
|
|
maxFiles: 7,
|
|
|
maxFiles: 1,
|
|
|
tailable: true,
|
|
|
maxsize: Math.pow(1024, 3),
|
|
|
timestamp() {
|
|
|
return new Date().toString();
|
|
|
}
|
...
|
...
|
@@ -86,8 +88,10 @@ module.exports = { |
|
|
name: 'error',
|
|
|
level: 'error',
|
|
|
filename: 'logs/error.log',
|
|
|
maxFiles: 1,
|
|
|
tailable: true,
|
|
|
maxsize: Math.pow(1024, 3),
|
|
|
handleExceptions: true,
|
|
|
maxFiles: 7,
|
|
|
timestamp() {
|
|
|
return new Date().toString();
|
|
|
}
|
...
|
...
|
@@ -250,8 +254,10 @@ if (isProduction) { |
|
|
infoFile: {
|
|
|
name: 'info',
|
|
|
level: 'info',
|
|
|
filename: '/Data/log/yoho-yohobuy-wap/info.log',
|
|
|
maxFiles: 7,
|
|
|
filename: '/Data/logs/yoho-yohobuy-wap/info/info.log',
|
|
|
maxFiles: 1,
|
|
|
tailable: true,
|
|
|
maxsize: Math.pow(1024, 3),
|
|
|
timestamp() {
|
|
|
return new Date().toString();
|
|
|
}
|
...
|
...
|
@@ -259,9 +265,11 @@ if (isProduction) { |
|
|
errorFile: {
|
|
|
name: 'error',
|
|
|
level: 'error',
|
|
|
filename: '/Data/log/yoho-yohobuy-wap/error.log',
|
|
|
filename: '/Data/logs/yoho-yohobuy-wap/error/error.log',
|
|
|
maxFiles: 1,
|
|
|
tailable: true,
|
|
|
maxsize: Math.pow(1024, 3),
|
|
|
handleExceptions: true,
|
|
|
maxFiles: 7,
|
|
|
timestamp() {
|
|
|
return new Date().toString();
|
|
|
}
|
...
|
...
|
|