Async-compatible, dependency-less log suppression and filtering lib
- Python 92.5%
- Makefile 7.5%
| shush | ||
| tests | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| LICENSE | ||
| Makefile | ||
| noxfile.py | ||
| pdm.lock | ||
| pyproject.toml | ||
| README.md | ||
shushlog
Async-compatible, dependency-less, simple log suppression and filtering.
TLDR
- supress all logs
>>> import logging
>>> import shush
>>> logger = logging.getLogger('foo')
>>> @shush.supress
>>> def shouldnt_log():
>>> logger.info("this should not be logged")
>>> @shush.supress
>>> async def shouldnt_log_async():
>>> logger.info("this should not be logged")
>>> def should_log():
>>> logger.info("this should be logged")
>>> shouldnt_log()
>>> await shouldnt_log_async()
>>> should_log()
INFO: this should be logged
- muzzle text