iopa-logger is IOPA middleware for tracing IOT messages
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
src
test
tools
.gitignore
LICENSE
NOTICE
README.md
demo.js
index.js
jsconfig.json
package.json
shippable.yml

README.md

IOPA
iopa-logger

Build Status IOPA limerun

NPM

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