docs: 修改log级别

pull/180/head
xiaojunnuo 2020-11-20 16:11:05 +08:00
parent 52e1d04e09
commit 0cfb32d4a7
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ const log4js = require('log4js')
const proxyConfig = require('../lib/proxy/common/config')
log4js.configure({
appenders: { std: { type: 'stdout', level: 'debug' }, file: { type: 'file', pattern: 'yyyy-MM-dd', daysToKeep: 3, filename: proxyConfig.getDefaultCABasePath() + '/logs/server.log' } },
categories: { default: { appenders: ['file', 'std'], level: 'debug' } }
categories: { default: { appenders: ['file', 'std'], level: 'info' } }
})
const logger = log4js.getLogger('server')
module.exports = logger