MENU

Fun & Interesting

Pino JS - Logging in JavaScript / Node.js applications

Better Stack 14,831 1 year ago
Video Not Working? Fix It Now

This video is a deep-dive into the Pino package for logging in JavaScript / Node.js applications. ► RELATED GUIDES A Complete Guide to Pino Logging in Node.js: https://betterstack.com/community/guides/logging/how-to-install-setup-and-use-pino-to-log-node-js-applications/ A Complete Guide to Winston Logging in Node.js: https://betterstack.com/community/guides/logging/how-to-install-setup-and-use-winston-and-morgan-to-log-node-js-applications/ 11 Best Practices for Logging in Node.js: https://betterstack.com/community/guides/logging/nodejs-logging-best-practices/ Logging in Node.js: A Comparison of the Top 8 Libraries: https://betterstack.com/community/guides/logging/best-nodejs-logging-libraries/ ► 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: https://twitter.com/betterstackhq LinkedIn: https://www.linkedin.com/company/betterstack Instagram: https://www.instagram.com/betterstackhq/ TikTok: https://www.tiktok.com/@betterstack ? ????????: 00:00 Intro 01:18 Installing Pino.js 03:02 Creating a Logger object 04:57 pino-pretty 06:57 Creating custom log-levels 09:17 Setting default log-level on the logger 10:20 Setting log-level via environment variable 12:21 Formatters in pino.js 14:04 Adding custom output to Pino logs 16:00 Child loggers in pino.js 18:45 Logging errors 22:05 Transports in pino.js 28:52 Redacting log data 32:00 Using pino.js in a Fastify application 35:20 Shipping logs to Better Stack #javascript #nodejs #logging

Comment