Loguru - Simplified Python Logging with Loguru!
About
No channel description available.
Latest Posts
Video Description
In this video, we'll explore the loguru package for logging in Python - this is the most popular third-party package for logging in the Python ecosystem. We'll explore log-levels, handlers, formatting and log rotation/retention in this video, and will see how to include contextual data and exception data in our log records using Loguru. We'll also explore log centralization with Better Stack, and how to centralize the log records generated by Loguru. โบ RELATED GUIDES A Complete Guide to Logging in Python with Loguru https://betterstack.com/community/guides/logging/loguru/ 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/ โบ 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 00:36 Loguru installation & intro 03:43 Formatting Log Entries with Loguru 07:51 Outputting JSON logs with loguru 09:55 Setting Log Level for loguru sinks 12:24 Outputting custom contextual data with Loguru 15:44 Logging exceptions with loguru 19:58 Log Rotation and Retention in loguru 23:19 Log Centralisation with Better Stack #logging #python
Boost Python Logging Today
AI-recommended products based on this video

Freenove Ultimate Starter Kit for BBC micro bit (V2 Included), 316-Page Detailed Tutorial, 225 Items, 44 Projects, Blocks and Python Code




















