Replace `print` to `logging`
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 761
- Forks
- 90
- Avg merge
- 25m
- Merged PRs (30d)
- 10
Description
Is your feature request related to a problem? Please describe.
When we build application like cli, web service, we often should suppress messages, send into stderr or record logs in files.
If we use print function for logging, it is not so easy to achieve these. logging is easy to suppress messages depend on the log level, and easy to send messages into stderr and files.
Describe the solution you'd like
replace print function to logging like following:
+ import logging
+ logger = logging.getLogger(__name__)
- print("INFO")
+ logger.info("INFO!") # or debug, warn, error
Contributor guide
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
Search the repository for print calls and inspect each caller to determine whether its message is informational, diagnostic, warning, or error output. Add module logging where needed and verify that messages use appropriate logging levels while preserving the intended output behavior; the issue names no specific files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- bioinformatics
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100