@pluginfactory/logbook-node-driver
v1.0.3
Published
Connectivity and logs driver for logbook (A Realtime logging tool by pluginfactory)
Downloads
3
Readme
logbook-node-driver
This plugin is a wrapper driver for logbook Pluggable Realtime logging interface. This acts as a connection medium between your nodejs application and logbook docker to handle realtime application logs. The logbook is distributed as docker image and you can see how to configure it by going through the official documentation. You can support the developer by giving star to the repository or by contributing on Github.
Installation
npm install --save @pluginfactory/logbook-node-driver
Usage Example
With ES5
const LogbookDriver = require('@pluginfactory/logbook-node-driver').LogbookDriver;
const logger = new LogbookDriver('http://localhost:49100');
logger.log('application started');
with ES6
import { LogbookDriver } from '@pluginfactory/logbook-node-driver';
const logger = new LogbookDriver('http://localhost:49100');
logger.log('application started');
This will display the Realtime log on the logbook dashboard available at <HOST>:49100