config.js 845 Bytes
/**
 * config.js
 * @author: feng.chen<feng.chen@yoho.cn>
 * @date: 2017/10/18
 */

'use strict';
const config = {
  app: 'yoho-bi',
  port: 8887,
  loggers: {
    file: {
      name: 'file',
      level: 'info',
      filename: '/Data/logs/yoho-bi-dashboard/info/info.log',
      maxFiles: 1,
      tailable: true,
      maxsize: Math.pow(1024, 3),
      timestamp() {
        return new Date().toString();
      }
    },
    error: {
      name: 'error',
      level: 'error',
      filename: '/Data/logs/yoho-bi-dashboard/error/error.log',
      handleExceptions: true,
      maxFiles: 1,
      tailable: true,
      maxsize: Math.pow(1024, 3),
      timestamp() {
        return new Date().toString();
      }
    },
    console: {
      level: 'info',
      colorize: 'all',
      prettyPrint: false
    }
  },
};

module.exports = config;