Commit ebeb0795 authored by wentao.suo's avatar wentao.suo

FIX

parent 6123f4f5
const path = require('path');
const logDir = path.resolve(process.cwd(), '../logs')
module.exports = {
port: '80',
// mongodb
......@@ -14,16 +16,15 @@ module.exports = {
// log4js
log4js: {
appenders: [
{ type: 'console' }, //控制台输出
{
type: 'dateFile', //文件输出
filename: '/home/quant_group/logs/activity-op.log',
pattern: '.yyyy-MM-dd',
layout: { type: 'basic' }
appenders: {
app: { type: 'dateFile', filename: logDir + '/activity-op.log', daysToKeep: 3, compress: true },
error: { type: 'dateFile', filename: logDir + '/activity-op.error.log', daysToKeep: 3, compress: true },
just_errors: { type: 'logLevelFilter', appender: 'error', level: 'error' }
},
categories: {
default: { appenders: ['app', 'just_errors'], level: 'info' }
}
]
},
},
// API
APP_API: 'http://sappbackend.domain.com',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment