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 = { module.exports = {
port: '80', port: '80',
// mongodb // mongodb
...@@ -14,15 +16,14 @@ module.exports = { ...@@ -14,15 +16,14 @@ module.exports = {
// log4js // log4js
log4js: { log4js: {
appenders: [ appenders: {
{ type: 'console' }, //控制台输出 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 },
type: 'dateFile', //文件输出 just_errors: { type: 'logLevelFilter', appender: 'error', level: 'error' }
filename: '/home/quant_group/logs/activity-op.log', },
pattern: '.yyyy-MM-dd', categories: {
layout: { type: 'basic' } default: { appenders: ['app', 'just_errors'], level: 'info' }
} }
]
}, },
// API // API
......
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