express-driftwood
A tiny piece of express middleware for logging requests using QubitProducts/driftwood.
Installation
npm i driftwood koa-driftwood
Usage
Just call koa-driftwood
with an instance of driftwood and mount it in your Koa app before everything else:
const createLogger = const Koa = const router = const koaLogger = createLogger const log = const app = app routerrouterrouter app app
Options
Options can be passed as a second argument.
options.ignore
A string, regex, function or array of the former, to match URLs that you don't want to log:
ignore: '/status' /^\/status/ url > -1