Skip to main content

Colorized logging with Python.

Project description

quick-colorlog

Inspired by coloredlogs but without the subprocesses.

Quickstart

from quick_colorlog import init_colors

init_colors()

Defaults

By default, the log level is set to logging.INFO and the output stream is attached to sys.stderr. To change these, pass arguments to init_colors()

from quick_colorlog import init_colors

init_colors(level=logging.DEBUG, output=sys.stdout)

Example

import logging
from quick_colorlog import init_colors

init_colors()

logger = logging.getLogger('testing')
logger.debug("test")
logger.info("test")
logger.warning("test")
logger.error("test")
logger.critical("test")

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

quick_colorlog-0.0.7.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

quick_colorlog-0.0.7-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file quick_colorlog-0.0.7.tar.gz.

File metadata

  • Download URL: quick_colorlog-0.0.7.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.10

File hashes

Hashes for quick_colorlog-0.0.7.tar.gz
Algorithm Hash digest
SHA256 72f21263704d7ca28ab82bde9ce09c553418c6da297ce7bd3dbd638844945f1c
MD5 a0f62999b1670ddfe73d2d2100e42428
BLAKE2b-256 50d9c6ec93a0bde2f1e9620b6c6d376099f1037e43546e761f219b39913ae43a

See more details on using hashes here.

File details

Details for the file quick_colorlog-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for quick_colorlog-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 083072bef0a1764655dd251cd2fae4627c700c118bf8dd273c5c104e6a1afa36
MD5 03a69d1a5dc8d351960a1a7dd85438be
BLAKE2b-256 aef75fd3acc393249d834639aa05e738463afaf96d7a76a84fda231c3940d1bb

See more details on using hashes here.

Supported by

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