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

'use strict';
//
const config = {
    app: 'mongo-search',
    port: 7001,
    cookieDomain: '.yohobuy.com',
    loggers: {
        infoFile: {
            close: true,
            name: 'info',
            level: 'error',
            filename: 'logs/info.log',
            maxFiles: 7
        },
        errorFile: {
            name: 'error',
            level: 'error',
            filename: 'logs/error.log',
            handleExceptions: true,
            maxFiles: 7
        },
        console: {
            level: 'info',
            colorize: 'all',
            prettyPrint: true
        }
    }
};


module.exports = config;