Winston - Logging in JavaScript & Node.js applications

Published: 30 December 2023
on channel: Better Stack
26,149
759

This video is a deep-dive into the Winston package for logging in JavaScript / Node.js applications.

We cover key features such as log-levels, transports, profiling, error handling, and formatting of log entries. We also look at how to centralize your logs across services using Better Stack.

► RELATED GUIDES
A Complete Guide to Winston Logging in Node.js:
https://betterstack.com/community/gui...

A Complete Guide to Pino Logging in Node.js: https://betterstack.com/community/gui...

11 Best Practices for Logging in Node.js:
https://betterstack.com/community/gui...

Logging in Node.js: A Comparison of the Top 8 Libraries:
https://betterstack.com/community/gui...

► HACKING SCALE NEWSLETTER
https://newsletter.betterstack.com/

► READ MORE
More about Better Stack: https://betterstack.com/
Community pages: https://betterstack.com/community/

► STAY TUNED
GitHub: https://github.com/BetterStackHQ
Twitter:   / betterstackhq  
LinkedIn:   / betterstack  
Instagram:   / betterstackhq  
TikTok:   / betterstack  

📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
02:07 Installing Winston in Node.js project
02:46 Winston Log Levels
03:35 Creating Winston logger
08:31 Formatting Winston log entries
11:29 Adding Custom entries to Winston log output
13:10 Creating a Child Logger object
15:26 Logging Errors with Winston
16:43 Using multiple loggers in application
22:07 Profiling in Winston
24:57 Log Centralisation with Better Stack

#javascript #nodejs #logging


On this page of the site you can watch the video online Winston - Logging in JavaScript & Node.js applications with a duration of hours minute second in good quality, which was uploaded by the user Better Stack 30 December 2023, share the link with friends and acquaintances, this video has already been watched 26,149 times on youtube and it was liked by 759 viewers. Enjoy your viewing!