setting the default logging level
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Is there a way to set the default logging level when calling get_logger? It seems the default is permanently set to "DEBUG" but the console stream handler is set to "INFO". I imagine this was to set one for a FileHandler and the other for the console. But when I issue log.debug commands and run code in the console they still get printed. I have to manually run log.setLevel("INFO") to turn off automatic debug statements to the console.
Similar can the logging level in one package propagate down to the logging level in dependencies that use the sdss logger?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the get_logger entry point and how its logger and console or file handlers receive levels. Check the logging propagation behavior for dependent packages. Done means callers can configure the default level and package-level settings behave as documented without requiring a manual log.setLevel call.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100