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.10.tar.gz (10.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.10-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for quick_colorlog-0.0.10.tar.gz
Algorithm Hash digest
SHA256 6a0640f1aad5d8968d7851d06436c67bdcdd5a7a0ca6d456bb59ff183b640028
MD5 5aa3e6efd737699ef8a511cae0057dd5
BLAKE2b-256 1d29395c36ebe19ee505d78dad82ddc3fed5472435e70f4fb2bc8bff6aeddd92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quick_colorlog-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 f61330324e4f9a9c59fae805c32cd572f9c7eeabf68038422b6a2f3fcb058f26
MD5 e475e88c3796e3af19abe4760105fa3b
BLAKE2b-256 d20696819dc851be5d33c4800d19117acd5892d423f3b3667ac01d60b04b344c

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