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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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