Skip to content

Latest commit

 

History

History
41 lines (24 loc) · 1.28 KB

README.md

File metadata and controls

41 lines (24 loc) · 1.28 KB

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