error-visor-0.0.6
توضیحات
Librería para guardar registros de errores y warnings personalizados en json
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | error-visor-0.0.6 |
| نام | error-visor |
| نسخه کتابخانه | 0.0.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Victor Valenzuela M |
| ایمیل نویسنده | vi.valenzuelam@gmail.com |
| آدرس صفحه اصلی | https://github.com/vvalenzuela96/error_visor_project |
| آدرس اینترنتی | https://pypi.org/project/error-visor/ |
| مجوز | MIT |
# Error Visor
## Que es?
Es un proyecto destinado a guardar registros personalizados en un archivo json que será utilizado
más tarde para visualizarse en una app web de forma localizada y ordenada. Solo es necesaria una
sentencia y listo, ya tienes el registro del error en tu app.
## Cómo funciona?
Primero instalamos con:
```bash
pip install error-visor
```
Importamos el módulo:
```python
import error_visor as EV
```
Luego localizamos el lugar desde donde queremos mandar el log. Por ejemplo un bloque `exception` y
colocamos el siguiente código:
```python
except Exception as ex:
EV.log(
EV.Error(
description='Error de muestra',
ex=ex,
priority=EV.Priority.HIGH
)
)
```
Para una `advertencia`/`warning`:
```python
except Exception as ex:
EV.log(
EV.Warning(
description='Advertencia de muestra',
ex=ex,
follow_me=True
)
)
```
Y listo, tendremos el registro en un json!
## CHANGELOG
### v0.0.6
- Fixed: Package .whl has the wrong uploaded
### v0.0.5
- Added: printable function to EV.log() -> It prints the status of the log to save
- Fixed: When we pass an Exception with args, it raises a JSONDecodeError!
### v0.0.4
- Modified: Now to log should be:
```python
EV.log(EV.Error(...))
#or
EV.log(EV.Warning(...))
```
- Modified: RTypes have new attr `context`. Its a merge between `function` and `class`.
- Fixed: Make of new log when the `logs` dir exists. The new log file wasn't created or created empty.
### v0.0.3
- Fixed: Making of new `logs` dir when that not exists. Really work now!
- Added: Warning Type
- Modified: RTypes have have new format to use. RTypes are like: `EV.Error`, `EV.Warning`, etc.
### v0.0.2
- Fixed: Making of new `logs` dir when that not exists
### v0.0.1
- First upload
نحوه نصب
نصب پکیج whl error-visor-0.0.6:
pip install error-visor-0.0.6.whl
نصب پکیج tar.gz error-visor-0.0.6:
pip install error-visor-0.0.6.tar.gz