Skip to content

Some utilities for the python logger to generate color coded logs

License

Notifications You must be signed in to change notification settings

SchloesserJonas/python-logger-utility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Python Logger Utility

Colorcode your logs to easily identify them during runtime

Setup

Change the colors in the logger.py file if needed
Otherwise no setup is needed, just import it and you are good to go!

Usage

from logger import Logger

logger = Logger("YOUR_MODULE_OR_CLASS_NAME_HERE").logger

# default/ predefined functions
logger.debug("Debug message")
logger.info("Info message")
logger.warning("Warning message")
logger.error("Error message")
logger.critical("Critical message")

Example

image
Example with the default color configuration

About

Some utilities for the python logger to generate color coded logs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages