Skip to content

Python Logging Source References

Use these official Python docs when applying the Python logging skill.

Core Documentation

Configuration And dictConfig

dictConfig references

Practical Notes

  • Prefer module loggers created with logging.getLogger(__name__).
  • Let applications configure handlers and formatters; libraries should emit logs without taking over routing.
  • Use basicConfig for simple scripts and dictConfig for centralized application configuration.
  • Explicitly set disable_existing_loggers: False in dictConfig unless disabling existing non-root loggers is intentional.
  • Use queue-based handlers when slow handlers would block async, threaded, or high-volume code paths.