Working on a large project is challenging on many fronts. One of those challenges is to make sure the logs are relaying all relevant information for the project that could help with debugging issues and failures.

Chances are your project is already using Python’s industry-standard logging module for logging purposes, so we need to be able to extend the _logging _module to add this information.

#pytest #python #software-engineering #logging

Easily Add Custom Attributes to LogRecord Objects In Python
2.65 GEEK