https://github.com/ofersadan85/env_color_logger
Colurful Python logger configurable through environment variables
https://github.com/ofersadan85/env_color_logger
environment-variables logging python
Last synced: 5 months ago
JSON representation
Colurful Python logger configurable through environment variables
- Host: GitHub
- URL: https://github.com/ofersadan85/env_color_logger
- Owner: ofersadan85
- License: mit
- Created: 2023-04-13T12:33:41.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-17T23:59:37.000Z (about 2 years ago)
- Last Synced: 2025-09-23T14:58:31.877Z (9 months ago)
- Topics: environment-variables, logging, python
- Language: Python
- Homepage: https://pypi.org/project/env-color-logger/
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# env_color_logger
[](https://github.com/ofersadan85/env_color_logger/releases/latest)
[](https://pypi.org/project/env_color_logger/)
[](LICENSE)
[](https://github.com/ofersadan85/env_color_logger/actions/workflows/tests.yml)
A simple logger that prints colored messages to the console and uses environment variables to control the basic setup.
See [example.env](example.env) for a list of environment variables that can be used to control the logger.
## Install
[](https://pypi.org/project/env_color_logger/)

```bash
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.
```python
from env_color_logger import EnvLogger
logger = EnvLogger(__name__)
logger.info("Hello World!")
```
## Requirements

Tested with & designed for python 3.10, see [requirements.txt](requirements.txt) for additional dependencies
## Contributing
For bugs / feature requests please submit [issues](https://github.com/ofersadan85/env_color_logger/issues)
[](https://github.com/ofersadan85/env_color_logger/issues)
[](https://github.com/ofersadan85/env_color_logger/issues)
If you would like to contribute to this project, you are welcome
to [submit a pull request](https://github.com/ofersadan85/env_color_logger/pulls)
[](https://github.com/ofersadan85/env_color_logger/pulls)
[](https://github.com/ofersadan85/env_color_logger/pulls)
## 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



