Authored by 郭成尧

Merge remote-tracking branch 'origin/master' into release/180420

... ... @@ -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();
}
... ...
... ... @@ -74,7 +74,7 @@
"xml2js": "^0.4.19",
"yoho-express-session": "^2.0.0",
"yoho-md5": "^2.0.0",
"yoho-node-lib": "=0.6.8",
"yoho-node-lib": "=0.6.10",
"yoho-zookeeper": "^1.0.9"
},
"devDependencies": {
... ...