1.0.8 • Published 1 year ago

wloghub v1.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year 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

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago