912 B
912 B
Python Logging References
Use these official Python docs when applying this skill.
Core Documentation
- Logging HOWTO: https://docs.python.org/3/howto/logging.html
- Logging Cookbook: https://docs.python.org/3/howto/logging-cookbook.html
- logging API reference: https://docs.python.org/3/library/logging.html
- logging.config reference: https://docs.python.org/3/library/logging.config.html
dictConfig-Specific
- Dictionary schema details (
version, formatters, handlers, loggers, root): https://docs.python.org/3/library/logging.config.html#logging-config-dictschema logging.config.dictConfigfunction: https://docs.python.org/3/library/logging.config.html#logging.config.dictConfig
Practical Notes
- Prefer app-level centralized config with one startup call to
dictConfig. - In modules, use
logging.getLogger(__name__). - Avoid calling
basicConfigin libraries or scattered modules.