kane-internal-logger
v0.1.0
Published
Koa middleware to inject a logger for the Kane APIs
Downloads
1
Maintainers
Readme
Kane Internal Logger
Koa middleware to inject a logger for the Kane APIs
Requirements
You need to execute node
version 8.x
at least (async/await
).
Installation
# npm
npm install --save kane-internal-logger
# yarn
yarn add kane-internal-logger
Usage
const Koa = require("koa");
const injectLogger = require("kane-internal-logger");
// must implements the `console` log level
const myLog = require("myLogger");
const app = new Koa();
app.use(injectLogger(myLog));
Linting
Made using eslint
. To enforce rules to be applied, use yarn lint:fix
.