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.8.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

quick_colorlog-0.0.8-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quick_colorlog-0.0.8.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for quick_colorlog-0.0.8.tar.gz
Algorithm Hash digest
SHA256 a9b43caedf0ea18c28289546cb3a71f2eb97b8b8b6b0c93cc286f5bf4401dc79
MD5 2c7953d0746f6654f1410578a1156636
BLAKE2b-256 38dca9b01a54f4b82ee846e1f67c971b66f03dae1a814a5a7ed5e53c5e94f461

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quick_colorlog-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3bd42dec56ebf52ef792d1d0b3c274dcb50887bdb2076bbfe903c259cb2e03aa
MD5 5b4eec71ad39fda287322a92e094e9d5
BLAKE2b-256 7c00dbd40ee90389553058ef5701a0141e9af80e8f8a82d4da443c2b1eaf1f2e

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