Skip to content

MehranJanfeshan/wloghub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published