Logging example does not output anything without a StreamHandler #2604
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: process
A process-related concern. May include testing, release, or the like.
Title
Logging example does not show output due to missing StreamHandler
Environment details
Steps to reproduce
Code example
Stack trace
(no output shown unless developer adds a StreamHandler manually)
Description
The logging example in the documentation sets the logging level with logger.setLevel(logging.INFO) but does not include a StreamHandler.
As a result, no output appears in most environments (e.g. terminal, script execution), unless a handler is explicitly added to send logs to stdout.
This can confuse users trying to debug API usage.
Proposed fix:
Update the example to include:
The text was updated successfully, but these errors were encountered: