A simple logger that prints colored messages to the console and uses environment variables to control the basic setup.
See example.env for a list of environment variables that can be used to control the logger.
pip install --upgrade env_color_logger
The usage in Python is very basic. Just import the logger and use it as you would use the standard logging
module. The logger will automatically use the environment variables to configure itself. This is done to aid in development of apps that are run in isolated environments, such as Docker containers.
from env_color_logger import EnvLogger
logger = EnvLogger(__name__)
logger.info("Hello World!")
Tested with & designed for python 3.10, see requirements.txt for additional dependencies
For bugs / feature requests please submit issues
If you would like to contribute to this project, you are welcome to submit a pull request
This project is being developed independently, we provide the package "as-is" without any implied warranty or liability, usage is your own responsibility
Just because I like badges