Logstash appender for Warwick logstash
Warwick logstash appender for log4js
---
This is a simple appender for log4js to send log messages to CLogS (logs.warwick.ac.uk).
$ npm install git+ssh://git@repo.elab.warwick.ac.uk/shared/log4js-node-clogs.git
`Usage
See the three example files.The default category used for log4js access logs is 'web'. For the CLogS appender, we use 'request'. This allows us to format access logs appropriately for different appenders without overlap.
The
parseExpress() method is used to generate access logs from Express.js. Set _res.locals.user_ (and _res.locals.realUser_ if your app supports masquerading) as objects with a getUsercode()` method in order to pass these data through.