/set-loglevel

Return a loglevel (10, 20, etc.) taking ENV LOGLEVEL into account

Primary LanguagePythonMIT LicenseMIT

set-loglevel

pytestpythonCode style: blackLicense: MITPyPI version

Return a loglevel taking ENV LOGLEVEL into account

Install it

pip install set-loglevel
# poetry add set-loglevel
# git clone https://github.com/ffreemt/set-loglevel && cd set-loglevel

Use it

from set_loglevel import set_loglevel

set_loglevel()  # 10/20/etc

# or
set_loglevel(20, force=True)  # 20