Skip to content

demonstrates how to use the winston logging library in Node

Notifications You must be signed in to change notification settings

jangbl/node-winston-logging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node Logging with winston

This tutorial demonstrates how to use the winston logging library to create custom loggers in your Node.js application.

It also demonstrates how to customize transports and what you need to pay attention to when you prepare your application for production use.

Please help this repo with a ⭐️ if you find it useful! 😁

This repository is contains the code for the Node winston logging tutorial on Youtube

Node winston logging tutorial

Please also check out my website at jangoebel.com

For updates, please follow @_jgoebel on Twitter.

How to run this application

Run

npm install

to install all dependencies

To see the output of the development logger run

npm run dev

The dev script automatically sets the NODE_ENV environment variable to development.

If the NODE_ENV environment variable is set to a different value than development (or not set at all), the production logger will be used.

To see the output of the production logger, just run

node index.js

About

demonstrates how to use the winston logging library in Node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published