iopa-logger
v1.4.2
Published
iopa-logger is an IOPA middleware for tracing messages
Downloads
30
Readme
iopa-logger
About
iopa-logger
is an IOPA middleware for tracing messages
Status
Working release
Includes:
Message Logger (middleware)
Automatic audit logging of outbound and inbound requests and responses
Installation
npm install iopa-logger
Usage
const MessageLogger = require('iopa-logger').MessageLogger
:
// INBOUND MESSAGES AND CORRESPONDING OUTBOUND RESPONSES
var appServer = new iopa.App();
app.use(MessageLogger);
// OUTBOUND MESSAGES AND CORRESPONDING INBOUND RESPONSES
var server = mqtt.createServer(app.build());
server.connectuse(iopaMessageLogger.connect);
:
See iopa-mqtt
for a reference implementation of this repository