env-color-logger-0.0.3
توضیحات
Simple logging using env variables
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | env-color-logger-0.0.3 |
| نام | env-color-logger |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ofer Sadan |
| ایمیل نویسنده | ofersadan85@gmail.com |
| آدرس صفحه اصلی | https://github.com/ofersadan85/env_color_logger |
| آدرس اینترنتی | https://pypi.org/project/env-color-logger/ |
| مجوز | MIT License |
# 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




نحوه نصب
نصب پکیج whl env-color-logger-0.0.3:
pip install env-color-logger-0.0.3.whl
نصب پکیج tar.gz env-color-logger-0.0.3:
pip install env-color-logger-0.0.3.tar.gz