Showing
1 changed file
with
20 additions
and
6 deletions
@@ -72,17 +72,25 @@ module.exports = { | @@ -72,17 +72,25 @@ module.exports = { | ||
72 | }, | 72 | }, |
73 | loggers: { | 73 | loggers: { |
74 | infoFile: { | 74 | infoFile: { |
75 | + close: true, | ||
75 | name: 'info', | 76 | name: 'info', |
76 | level: 'info', | 77 | level: 'info', |
77 | - filename: '/Data/log/yoho-yohobuy-wap/info.log', | ||
78 | - maxFiles: 7 | 78 | + filename: 'logs/info.log', |
79 | + maxFiles: 7, | ||
80 | + timestamp() { | ||
81 | + return new Date().toString(); | ||
82 | + } | ||
79 | }, | 83 | }, |
80 | errorFile: { | 84 | errorFile: { |
85 | + close: true, | ||
81 | name: 'error', | 86 | name: 'error', |
82 | level: 'error', | 87 | level: 'error', |
83 | - filename: '/Data/log/yoho-yohobuy-wap/error.log', | 88 | + filename: 'logs/error.log', |
84 | handleExceptions: true, | 89 | handleExceptions: true, |
85 | - maxFiles: 7 | 90 | + maxFiles: 7, |
91 | + timestamp() { | ||
92 | + return new Date().toString(); | ||
93 | + } | ||
86 | }, | 94 | }, |
87 | console: { | 95 | console: { |
88 | level: 'debug', | 96 | level: 'debug', |
@@ -241,14 +249,20 @@ if (isProduction) { | @@ -241,14 +249,20 @@ if (isProduction) { | ||
241 | name: 'info', | 249 | name: 'info', |
242 | level: 'info', | 250 | level: 'info', |
243 | filename: '/Data/log/yoho-yohobuy-wap/info.log', | 251 | filename: '/Data/log/yoho-yohobuy-wap/info.log', |
244 | - maxFiles: 7 | 252 | + maxFiles: 7, |
253 | + timestamp() { | ||
254 | + return new Date().toString(); | ||
255 | + } | ||
245 | }, | 256 | }, |
246 | errorFile: { | 257 | errorFile: { |
247 | name: 'error', | 258 | name: 'error', |
248 | level: 'error', | 259 | level: 'error', |
249 | filename: '/Data/log/yoho-yohobuy-wap/error.log', | 260 | filename: '/Data/log/yoho-yohobuy-wap/error.log', |
250 | handleExceptions: true, | 261 | handleExceptions: true, |
251 | - maxFiles: 7 | 262 | + maxFiles: 7, |
263 | + timestamp() { | ||
264 | + return new Date().toString(); | ||
265 | + } | ||
252 | }, | 266 | }, |
253 | console: { | 267 | console: { |
254 | close: true, | 268 | close: true, |
-
Please register or login to post a comment