No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dev
src
test
.babelrc
.gitignore
.npmignore
CHANGELOG.md
README.md
package.json
yarn.lock

README.md

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'}
        }
    }
    //...
}