Winston - Logging in JavaScript & Node.js applications

Sdílet
Vložit
  • čas přidán 29. 07. 2024
  • 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:
    betterstack.com/community/gui...
    A Complete Guide to Pino Logging in Node.js: betterstack.com/community/gui...
    11 Best Practices for Logging in Node.js:
    betterstack.com/community/gui...
    Logging in Node.js: A Comparison of the Top 8 Libraries:
    betterstack.com/community/gui...
    ► READ MORE
    More about Better Stack: betterstack.com/
    Community pages: betterstack.com/community/
    ► STAY TUNED
    GitHub: 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

Komentáře •