EverLoguru-1.1.6
توضیحات
Loguru all over the world. | 全世界都在用 Lo~guru~~
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | EverLoguru-1.1.6 |
| نام | EverLoguru |
| نسخه کتابخانه | 1.1.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | cyan |
| ایمیل نویسنده | Cyan <lc_shizuku@outlook.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/EverLoguru/ |
| مجوز | - |
# Loguru Ever
[](https://pypi.org/project/EverLoguru/)
[](https://github.com/Chinese-Cyq20100313/loguruEverywhere/releases)
Use and replace logging to loguru everywhere!
_**Loguru used all over the world. | 全世界都在用 Loguru**_
## Installation
You can install Loguru Ever from PyPI:
```shell
pip install EverLoguru
```
## Usage
Loguru Ever is a simple package that replaces the standard logging module with loguru. Loguru is a modern and easy-to-use logging library for Python. With Loguru Ever, you can use loguru features in any module that uses logging, without changing any code.
To use Loguru Ever, you just need to import it and call the replace_logging function at the beginning of your program. This will replace the logging module in the sys.modules dictionary with loguru. After that, you can use loguru as usual.
For example, if you have a module called foo.py that uses logging:
```python
import logging
logger = logging.getLogger(__name__)
def bar():
logger.info("Hello from bar")
```
You can use Loguru Ever in your main script like this:
```python
import ever_loguru
ever_loguru.install_class()
import foo
foo.bar()
```
This will output:
```log
2021-12-15 16:13:49.123 | INFO | foo:bar:5 - Hello from bar
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl EverLoguru-1.1.6:
pip install EverLoguru-1.1.6.whl
نصب پکیج tar.gz EverLoguru-1.1.6:
pip install EverLoguru-1.1.6.tar.gz