access logs for connect in rapidus
npm install --save rapidus-connect-logger
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)
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