Authored by 郝肖肖

'logs'

@@ -76,7 +76,9 @@ module.exports = { @@ -76,7 +76,9 @@ module.exports = {
76 name: 'info', 76 name: 'info',
77 level: 'info', 77 level: 'info',
78 filename: 'logs/info.log', 78 filename: 'logs/info.log',
79 - maxFiles: 7, 79 + maxFiles: 1,
  80 + tailable: true,
  81 + maxsize: Math.pow(1024, 3),
80 timestamp() { 82 timestamp() {
81 return new Date().toString(); 83 return new Date().toString();
82 } 84 }
@@ -86,8 +88,10 @@ module.exports = { @@ -86,8 +88,10 @@ module.exports = {
86 name: 'error', 88 name: 'error',
87 level: 'error', 89 level: 'error',
88 filename: 'logs/error.log', 90 filename: 'logs/error.log',
  91 + maxFiles: 1,
  92 + tailable: true,
  93 + maxsize: Math.pow(1024, 3),
89 handleExceptions: true, 94 handleExceptions: true,
90 - maxFiles: 7,  
91 timestamp() { 95 timestamp() {
92 return new Date().toString(); 96 return new Date().toString();
93 } 97 }
@@ -250,8 +254,10 @@ if (isProduction) { @@ -250,8 +254,10 @@ if (isProduction) {
250 infoFile: { 254 infoFile: {
251 name: 'info', 255 name: 'info',
252 level: 'info', 256 level: 'info',
253 - filename: '/Data/log/yoho-yohobuy-wap/info.log',  
254 - maxFiles: 7, 257 + filename: '/Data/log/yoho-yohobuy-wap/info/info.log',
  258 + maxFiles: 1,
  259 + tailable: true,
  260 + maxsize: Math.pow(1024, 3),
255 timestamp() { 261 timestamp() {
256 return new Date().toString(); 262 return new Date().toString();
257 } 263 }
@@ -259,9 +265,11 @@ if (isProduction) { @@ -259,9 +265,11 @@ if (isProduction) {
259 errorFile: { 265 errorFile: {
260 name: 'error', 266 name: 'error',
261 level: 'error', 267 level: 'error',
262 - filename: '/Data/log/yoho-yohobuy-wap/error.log', 268 + filename: '/Data/log/yoho-yohobuy-wap/error/error.log',
  269 + maxFiles: 1,
  270 + tailable: true,
  271 + maxsize: Math.pow(1024, 3),
263 handleExceptions: true, 272 handleExceptions: true,
264 - maxFiles: 7,  
265 timestamp() { 273 timestamp() {
266 return new Date().toString(); 274 return new Date().toString();
267 } 275 }
@@ -74,7 +74,7 @@ @@ -74,7 +74,7 @@
74 "xml2js": "^0.4.19", 74 "xml2js": "^0.4.19",
75 "yoho-express-session": "^2.0.0", 75 "yoho-express-session": "^2.0.0",
76 "yoho-md5": "^2.0.0", 76 "yoho-md5": "^2.0.0",
77 - "yoho-node-lib": "=0.6.8", 77 + "yoho-node-lib": "=0.6.9",
78 "yoho-zookeeper": "^1.0.9" 78 "yoho-zookeeper": "^1.0.9"
79 }, 79 },
80 "devDependencies": { 80 "devDependencies": {