Authored by 郭成尧

loggers-config

@@ -76,7 +76,7 @@ module.exports = { @@ -76,7 +76,7 @@ module.exports = {
76 maxFiles: 7 76 maxFiles: 7
77 }, 77 },
78 console: { 78 console: {
79 - level: 'info', 79 + level: 'debug',
80 colorize: 'all', 80 colorize: 'all',
81 prettyPrint: true 81 prettyPrint: true
82 } 82 }
@@ -218,6 +218,28 @@ if (isProduction) { @@ -218,6 +218,28 @@ if (isProduction) {
218 host: 'badjs.yoho.cn', 218 host: 'badjs.yoho.cn',
219 port: 80, 219 port: 80,
220 db: 'web-apm' 220 db: 'web-apm'
  221 + },
  222 + loggers: {
  223 + infoFile: {
  224 + close: true,
  225 + name: 'info',
  226 + level: 'error',
  227 + filename: 'logs/info.log',
  228 + maxFiles: 7
  229 + },
  230 + errorFile: {
  231 + close: true,
  232 + name: 'error',
  233 + level: 'error',
  234 + filename: 'logs/error.log',
  235 + handleExceptions: true,
  236 + maxFiles: 7
  237 + },
  238 + console: {
  239 + level: 'info',
  240 + colorize: 'all',
  241 + prettyPrint: true
  242 + }
221 } 243 }
222 }); 244 });
223 } else if (isTest) { 245 } else if (isTest) {