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!
- 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
The recommended font is MesloLGS NF
.
pip install colorlog-python
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!