1.0.8 • Published 2 years ago

wloghub v1.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

wloghub

A simple logger module that helps you to have a better logging experience in your nodejs application with the help of winston.

Installation

Using npm

npm install wloghub --save

In node.js

const logger = require('wloghub');
logger.info({'Hello World'});

In typescript

import {logger} from 'wloghub';
logger.info({'Hello World'});

correlationId

If you want to add a correlationId to your logs, you can do it by adding correlationId to the global object.

global['correlationId'] = '1234';

or you can add it to the env variable correlationId

process.env['correlationId'] = '1234';

see wloghub for more details.

1.0.8

2 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago