1.0.0 • Published 6 years ago
fpm-plugin-logger v1.0.0
FPM-PLUGIN-LOGGER
用于输出日志的插件
Install
yarn add fpm-plugin-logger
Useage
config in config.json
{
//...
log4js:{
appenders: {
app: { type: 'dateFile', filename: 'logs/app.log', pattern: '.yyyy-MM-dd-hh', compress: true }
},
categories: {
default: { appenders: [ 'app' ], level: 'error'}
}
}
//...
}