Deep Dive into Contextual Logging for Modern Python Applications
Tapan Avasthi (~tapan) |
1
Description:
In today's world of complex and distributed software systems, good logging practices are crucial for keeping track of what's going on in the system, debugging problems, and maintaining your apps. Contextual logging takes standard logging to the next level by adding rich, detailed information to your log messages, making it much easier to trace issues and understand how your application behaves.
Join us for a deep dive into contextual logging for modern Python applications! We’ll start by exploring popular libraries like structlog, loguru, logbook, and the built-in logging module. You’ll learn to integrate these libraries into your projects to enhance your log messages with valuable context.
But we won't stop there! We'll also show you how to add custom support for contextual logging using the standard logging module and context manager. You'll learn how to create custom log filters, adapters, and processors to dynamically add contexts such as user IDs, request IDs, and other important data to your logs.
By the end of this session, you'll have a solid understanding of contextual logging, practical knowledge of popular logging libraries, and the skills to implement custom logging solutions to your Python-based applications.
Prerequisites:
- Basic understanding of Python programming
- Familiarity with the standard Python logging module
- General knowledge of logging practices in software
Video URL:
https://drive.google.com/file/d/1BvtMKl2-uPStRW53xpQVXReGVeoVENz4/view?usp=sharing
Speaker Info:
Vani Chitkara is a software engineer at Palo Alto Networks, specializing in Java and Spring Boot for cybersecurity solutions. Previously, she interned at Microsoft and Outreachy, where she worked with OpenArchive and contributed to open-source projects. She aims to innovate and enhance cloud-based systems' security and usability, leveraging her knowledge and passion for technological advancement.
Tapan Avasthi is an experienced Senior Engineer with almost a decade of experience in backend development in the software industry. They have a solid inclination to automate the tedious parts of software development and possess an opinionated view on writing elegant, clean code regardless of the technology stack. Additionally, they have worked with large-scale projects deployed using modern infrastructure and a variety of programming languages, including Python, Go, and Java.
Speaker Links:
Connect with Vani Chitkara on LinkedIn
Connect with Tapan Avasthi on LinkedIn