filmov
tv
Learning Winston - A Production Level Logger in Javascript, Node JS | 2024

Показать описание
We will learn the following features:
1. We can log in the terminal, file, JSON, or other transport in just one line.
2. Now, based on your application environment, we can restrict which type of log is printed in which environment, e.g., debug, info, warn, error in DEV, info, warn, error in UAT, warn, and error only in Production.
3. Cost Optimization
🔗 Links:
⏰ Key Moments:
00:00 - Introduction
02:21 - Reviewing Winston SDK Package
05:28 - Understanding Log level order wise print(debug, warn, error, etc)
09:24 - Creating logger directory in root level
10:36 - Setting Dev environment
11:33 - Understanding file logger/indexedDB.ts (Configuring env here)
13:18 - Winston Dev Config - log level debug, printing only in terminal
18:08 - Eg1: Printing Port (Dev Environment)
19:07 - Eg2: GetTasks Info in TaskController Postman Log Print (Dev Environment)
21:41 - Eg3: GetTasks Error in TaskService Postman Log Print (Dev Environment)
26:22 - Setting UAT environment
26:57 - Eg1: Printing Port (UAT Environment) | Understanding Diff
28:20 - Setting Production environment
28:43 - Eg1: Printing Port (Production Environment) | Understanding Diff
31:36 - Quickly changing config in production
32:09 - Wrap up
#winston #loggers #javascript
Connect with me 👋
#loggers #nestjs #nodejs #default
Комментарии