Skip to content

Driver to handle logs logging with logbook (A Realtime logging service by pluginfactory)

Notifications You must be signed in to change notification settings

pluginfactory/logbook-node-driver

Repository files navigation

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

About

Driver to handle logs logging with logbook (A Realtime logging service by pluginfactory)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published