Skip to main content

Simple logging using env variables

Project description

env_color_logger

Latest Release env_color_logger on pypi MIT License Python package tests

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.

Install

env_color_logger on pypi wheel

pip install --upgrade env_color_logger

Usage

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!")

Requirements

Python Versions

Tested with & designed for python 3.10, see requirements.txt for additional dependencies

Contributing

For bugs / feature requests please submit issues

Open Issues Closed Issues

If you would like to contribute to this project, you are welcome to submit a pull request

Open Pull Requests Closed Pull Requests

Warranty / Liability / Official support

This project is being developed independently, we provide the package "as-is" without any implied warranty or liability, usage is your own responsibility

Additional info

Just because I like badges

Code Size Pypi downloads per month Pypi downloads per week Pypi downloads per day

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

env_color_logger-0.0.3.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

env_color_logger-0.0.3-py3-none-any.whl (4.5 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