rapidus-connect-logger
v2.0.0
Published
[![NPM Version][npm-image]](https://npmjs.org/package/rapidus-connect-logger) [![Build Status][travis-image]](https://travis-ci.org/keis/rapidus-connect-logger) [![Coverage Status][coveralls-image]](https://coveralls.io/r/keis/rapidus-connect-logger?branc
Downloads
8
Readme
rapidus-connect-logger
access logs for connect in rapidus
Installation
npm install --save rapidus-connect-logger
Usage
Wrapping an existing logger object
var accessLog = require('rapidus-connect-logger')
var logger = require('rapidus').getLogger('access')
app.use(accessLog(logger))
Creating a new logger and adding it to the hierarchy
var logger = require('rapidus-connect-logger').createLogger('access')
app.use(logger.middleware)
require('rapidus').manageLogger(logger)
Changes
2.0.0
Starting with version 2.0 no attempt to add loggers created by this module to
rapidus is made. A Logger instance is still created using the mlogy
module
but needs to be explicitly added to the hierarchy.
As I cuddled the porcupine