Skip to main content Brad's PyNotes

Posts on Debugging

  1. Logging Module: Professional Application Logging

    TL;DR

    The logging module provides flexible, configurable logging with different levels (DEBUG, INFO, WARNING, ERROR, CRITICAL), handlers for various outputs, and formatters for customized log messages.

  2. Errors and Exceptions Tutorial: Robust Error Handling in Python

    TL;DR

    Python handles errors through exceptions using try/except/finally blocks, with built-in exception types like ValueError, TypeError, and FileNotFoundError, plus the ability to create custom exceptions and proper error handling patterns.