Skip to content

iopa-io/iopa-logger

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

iopa-logger is IOPA middleware for tracing IOT messages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published