https://github.com/pluginfactory/logbook-node-driver
Driver to handle logs logging with logbook (A Realtime logging service by pluginfactory)
https://github.com/pluginfactory/logbook-node-driver
driver logbook logger logs nodejs npm-package plugin
Last synced: 4 months ago
JSON representation
Driver to handle logs logging with logbook (A Realtime logging service by pluginfactory)
- Host: GitHub
- URL: https://github.com/pluginfactory/logbook-node-driver
- Owner: pluginfactory
- Created: 2019-03-06T18:13:56.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T17:23:24.000Z (about 3 years ago)
- Last Synced: 2025-01-28T21:07:08.182Z (about 1 year ago)
- Topics: driver, logbook, logger, logs, nodejs, npm-package, plugin
- Language: JavaScript
- Size: 295 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# logbook-node-driver
This plugin is a wrapper driver for [logbook](https://hub.docker.com/r/pluginfactory/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](https://github.com/pluginfactory/logbook).
## Installation
```
npm install --save @pluginfactory/logbook-node-driver
```
## Usage Example
#### With ES5
```javascript
const LogbookDriver = require('@pluginfactory/logbook-node-driver').LogbookDriver;
const logger = new LogbookDriver('http://localhost:49100');
logger.log('application started');
```
#### with ES6
```javascript
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

## Reference
- [Logbook Docker](https://hub.docker.com/r/pluginfactory/logbook)
- [Logbook NodeJS Driver](https://www.npmjs.com/package/@pluginfactory/logbook-node-driver)