Skip to main content

A lightweight logger that makes logging to the terminal easy and pretty in python.

Project description

ColorLog

GitHub

ColorLog is a lightweight logger that makes logging to the terminal easy and pretty for python.

This is self-made & self-used module for coloring logging infomation. Welcome any contributions if you would like!

TODO

  • Auto-inline
  • Add requirements
  • Upload to PyPI

Installation

Font

The recommended font is MesloLGS NF.

Install from PyPI

TODO

pip install colorlog-python

Usage

To use colorlog, just import the pre-instantiated logger into your code.

from colorlog import logger

logger.debug("prompt:", your_args)
logger.info("prompt:", your_args)
logger.warning("prompt:", your_args)
logger.success("prompt:", your_args)
logger.error("prompt:", your_args)

For other detailed APIs please check the code!

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-python-1.1.0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

colorlog_python-1.1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file colorlog-python-1.1.0.tar.gz.

File metadata

  • Download URL: colorlog-python-1.1.0.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for colorlog-python-1.1.0.tar.gz
Algorithm Hash digest
SHA256 c803c994a7a17ac42d06c38bc32f53d20500470304bf24cbaed89e36a4f224a9
MD5 e63320ec94ed8012a2c8dc67c75ac89e
BLAKE2b-256 20b73693f1f4099967e183743cb84dffb3f5e918a8f6e2993a5bfe972195abf9

See more details on using hashes here.

File details

Details for the file colorlog_python-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for colorlog_python-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b68fc3cb7a611a1d2434191afdcd5efa2c9e5fed5d6b75ea8b96918f1fef2ed4
MD5 0f8465b2dba4e92154ac98cb84d843b1
BLAKE2b-256 7058804d94947e64a8aecc268d60f72c314ab2b0828b7ec216f9fa5c831ac8db

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