Enable the default logging to output with color
Project description
colorlog
example
from colorlog import logging
logging.basicConfig(level=logging.DEBUG)
logging.debug("jawide")
logging.info("jawide")
logging.warning("jawide")
logging.error("jawide")
logging.critical("jawide")
setup
pip install colorlog-jawide
custom
from colorlog import init, Config, LogLevel, Color, Fore, Back, Style
import logging
init(logging, Config({
LogLevel.DEBUG : Color(Fore.GREEN, Style.BRIGHT),
LogLevel.CRITICAL : Color(Fore.YELLOW, Back.RED, Style.NORMAL)
}))
logging.basicConfig(level=logging.DEBUG)
logging.debug("jawide")
logging.info("jawide")
logging.warning("jawide")
logging.error("jawide")
logging.critical("jawide")
build
rm -r ./build ./dist
python setup.py sdist bdist_wheel
test upload
python -m twine upload --repository testpypi dist/*
test pip
python -m pip install --index-url https://test.pypi.org/simple/ --no-deps colorlog-jawide
upload
python -m twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
colorlog-jawide-0.0.1.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for colorlog_jawide-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97f30db3f4d140988f6e92cc0ec6df057d891a4c4362aaace5fd71a45d33f51b |
|
MD5 | 6091ccf81b194594c063734d82f6a410 |
|
BLAKE2b-256 | 0f1c219346118515bdb75f535331529333f86c1418051d97258ca67aba47829f |