Skip to content

A self-made & lightweight logger that makes logging to the terminal easy & pretty for python.

License

Notifications You must be signed in to change notification settings

jimmydengpeng/colorlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  • Mutable number of API inputs, i.e., optional prompt or args
  • log which file path the line of code in

Installation

Font

The recommended font is MesloLGS NF.

Install from PyPI

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)

The output in the Terminal will look like this:

For other detailed APIs please check the code!

About

A self-made & lightweight logger that makes logging to the terminal easy & pretty for python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages