23 lines
1.0 KiB
Markdown
23 lines
1.0 KiB
Markdown
# Python Logging References
|
|
|
|
Use these official Python docs when applying this skill.
|
|
|
|
## Core Documentation
|
|
|
|
!!! info "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
|
|
|
|
!!! info "dictConfig references"
|
|
- [Dictionary schema details](https://docs.python.org/3/library/logging.config.html#logging-config-dictschema) for `version`, formatters, handlers, loggers, and root.
|
|
- [`logging.config.dictConfig`](https://docs.python.org/3/library/logging.config.html#logging.config.dictConfig) function reference.
|
|
|
|
## Practical Notes
|
|
- Prefer app-level centralized config with one startup call to `dictConfig`.
|
|
- In modules, use `logging.getLogger(__name__)`.
|
|
- Avoid calling `basicConfig` in libraries or scattered modules.
|