entry-logger-sanic-0.1.7
توضیحات
NDJSON formatted logger integration with Sanic
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | entry-logger-sanic-0.1.7 |
| نام | entry-logger-sanic |
| نسخه کتابخانه | 0.1.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | NovemberOscar |
| ایمیل نویسنده | kim@seonghyeon.dev |
| آدرس صفحه اصلی | https://github.com/EntryDSM/entry-logger-sanic |
| آدرس اینترنتی | https://pypi.org/project/entry-logger-sanic/ |
| مجوز | MIT |
# entry-logger-sanic


A logger for Sanic based EntryDSM service
## Install
```bash
pip install entry-logger-sanic
```
## Feature
- Request logging
- System logging
- File saving in NDJSON format
## Usage
```python
import os
from sanic import Sanic
from entry_logger_sanic import set_logger
log_path = os.path.dirname(__file__).replace("/service", "").replace("/currentdir", "") # example
app = Sanic("SERVICE NAME") # please specify service name!
set_logger(app, log_path)
...
```
The log file will be saved under `{designated path}/log` as `{given service name}.log`
## Versioning
```
{Major}.{Minor}.{Patch}
```
ex: 0.2.3
- Major: without subcompatibility
- Minor: with partial subcompatibility
- Patch: with full subcompatibility
## Maintainer
- Seonghyeon Kim - [NovemberOscar](https://github.com/NovemberOscar)
نحوه نصب
نصب پکیج whl entry-logger-sanic-0.1.7:
pip install entry-logger-sanic-0.1.7.whl
نصب پکیج tar.gz entry-logger-sanic-0.1.7:
pip install entry-logger-sanic-0.1.7.tar.gz