A simple logger module that helps you to have a better logging experience in your nodejs application with the help of winston.
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'});
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.