docs: 修改log级别
parent
52e1d04e09
commit
0cfb32d4a7
|
@ -2,7 +2,7 @@ const log4js = require('log4js')
|
||||||
const proxyConfig = require('../lib/proxy/common/config')
|
const proxyConfig = require('../lib/proxy/common/config')
|
||||||
log4js.configure({
|
log4js.configure({
|
||||||
appenders: { std: { type: 'stdout', level: 'debug' }, file: { type: 'file', pattern: 'yyyy-MM-dd', daysToKeep: 3, filename: proxyConfig.getDefaultCABasePath() + '/logs/server.log' } },
|
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')
|
const logger = log4js.getLogger('server')
|
||||||
module.exports = logger
|
module.exports = logger
|
||||||
|
|
Loading…
Reference in New Issue