MENU

Fun & Interesting

Logging in Django and Python Applications - Handlers / Formatters / Better Stack aggregation

Better Stack 7,420 lượt xem 1 year ago
Video Not Working? Fix It Now

In this video, you'll learn how to configure logging in a Django web application, and will learn about the built-in utilities provided by Python's logging package - Loggers, Handlers and Formatters.

You will learn how to ship logs to different locations using handlers - for example, sending logs to files, and shipping to Better Stack for centralized storage, aggregation and analysis.

► RELATED GUIDES
How to Get Started with Logging in Django: https://betterstack.com/community/guides/logging/how-to-start-logging-with-django/

10 Best Practices for Logging in Python:
https://betterstack.com/community/guides/logging/python/python-logging-best-practices/

Logging in Python: A Comparison of the Top 6 Libraries:
https://betterstack.com/community/guides/logging/best-python-logging-libraries/

► 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:02 Python logging module
08:33 Logging in Django applications
17:25 Adding a Formatter for Django logs
22:42 Configuring logging settings with environment variables and Django-environ
27:01 Logger Namespacing & Hierarchies
32:09 BetterStack log aggregation integration

#django #logging #python #pythonprogramming

Comment