env_color_logger
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
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
Tested with & designed for python 3.10, see requirements.txt for additional dependencies
Contributing
For bugs / feature requests please submit issues
If you would like to contribute to this project, you are welcome to submit a pull request
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
Metadata
Release files for env-color-logger 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| env_color_logger-0.0.3.tar.gz | 4.0 kB | Without provenance | Details for env_color_logger-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| env_color_logger-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for env_color_logger-0.0.3-py3-none-any.whl |
Total release size: 8.5 kB
Release files / env_color_logger-0.0.3.tar.gz
| Download URL | env_color_logger-0.0.3.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0da1ff2b0b4d0954e3d0ae8fdb853a1c07b8376204512ce6293ad70584c57ef3
|
|
BLAKE2b-256 checksum How to use checksums |
d6c5afc2d02a6b97b037bd6f4cc0a58ad014d804c8398348c9ad4a68ad6a380d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / env_color_logger-0.0.3-py3-none-any.whl
| Download URL | env_color_logger-0.0.3-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b0674580d5d5924364a95c85f7332bf52b0ddbe01abe7dce32b284bd2a10c76
|
|
BLAKE2b-256 checksum How to use checksums |
4b8d043d0ca70da105c168f2d299cdb517a6e9d76f74bced30d46239b839aa86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Security for env-color-logger 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.