Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1.38 KB

README.md

File metadata and controls

40 lines (25 loc) · 1.38 KB

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

Output

logbook-demo

Reference