iopa-logger

1.4.2 • Public • Published

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

Package Sidebar

Install

npm i iopa-logger

Weekly Downloads

3

Version

1.4.2

License

Apache-2.0

Last publish

Collaborators

  • tinialabs1
  • iopa-admin
  • guycreate