Skip to main content

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

colorlog_jawide-0.0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file colorlog-jawide-0.0.1.tar.gz.

File metadata

  • Download URL: colorlog-jawide-0.0.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for colorlog-jawide-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f8aa49c0a7387903f441df3606b7e2654e3e39ab84ee03f921be1d85e20178ca
MD5 97f0e72675125f5b9081d2d54a31cf91
BLAKE2b-256 51ee308598551bbf781950c4829867b44dce82945d14ab4379caa492cd0ef7f5

See more details on using hashes here.

File details

Details for the file colorlog_jawide-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: colorlog_jawide-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for colorlog_jawide-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 97f30db3f4d140988f6e92cc0ec6df057d891a4c4362aaace5fd71a45d33f51b
MD5 6091ccf81b194594c063734d82f6a410
BLAKE2b-256 0f1c219346118515bdb75f535331529333f86c1418051d97258ca67aba47829f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page