qradar-audit-logs-middleware
v3.0.1
Published
Middleware to log all requests that pass through and aspects of the response
Downloads
15
Readme
IBM Bluemix DevOps Services - node-qradar-audit-logs-middleware
For more information on IBM Bluemix DevOps Services, see the Bluemix Public IDS Experiment.
This is one of hundreds of IBM Open Source projects at GitHub.
node-qradar-audit-logs-middleware
Middleware to log all requests that pass through and aspects of the response.
To upgrade / install
npm i --save qradar-audit-logs-middleware
Pre-requisites
- Your app must use express as the framework.
To use
var auditLogMiddleware = require('qradar-audit-logs-middleware');
// init express etc
// add this middleware at the appropriate point (after auth but before the middleware that handles the important routes):
app.use(auditLogMiddleware(log4js.getLogger('audit-logs')));
For ideal use
- Ensure that the fetch-auth middleware is used before this, and that it tacks on the TIAM userinfo object at req.user
Recommended logging library
We use this library in conjunction with log4js, so using node-log4js is recommended.
License
Contributing
Contributions are welcome via Pull Requests. Please submit your very first Pull Request against the Developer's Certificate of Origin, adding a line like the following to the end of the file... using your name and email address of course!
Signed-off-by: John Doe <[email protected]>