Skip to main content

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/*

Release files for colorlog-jawide 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for colorlog-jawide 0.0.1
File Size Uploaded
colorlog-jawide-0.0.1.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for colorlog-jawide 0.0.1
File Interpreter ABI Platform
colorlog_jawide-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 kB

Release files / colorlog-jawide-0.0.1.tar.gz

Download URL colorlog-jawide-0.0.1.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f8aa49c0a7387903f441df3606b7e2654e3e39ab84ee03f921be1d85e20178ca
BLAKE2b-256 checksum
How to use checksums
51ee308598551bbf781950c4829867b44dce82945d14ab4379caa492cd0ef7f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.61.2 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.5

Release files / colorlog_jawide-0.0.1-py3-none-any.whl

Download URL colorlog_jawide-0.0.1-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97f30db3f4d140988f6e92cc0ec6df057d891a4c4362aaace5fd71a45d33f51b
BLAKE2b-256 checksum
How to use checksums
0f1c219346118515bdb75f535331529333f86c1418051d97258ca67aba47829f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.61.2 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.5

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page