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.
Middleware to log all requests that pass through and aspects of the response.
npm i --save qradar-audit-logs-middleware
- Your app must use express as the framework.
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')));
- Ensure that the fetch-auth middleware is used before this, and that it tacks on the TIAM userinfo object at req.user
We use this library in conjunction with log4js, so using node-log4js is recommended.
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 <john.doe@example.org>