awsLogger-0.0.9
توضیحات
log into a file and push it to aws s3
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | awsLogger-0.0.9 |
| نام | awsLogger |
| نسخه کتابخانه | 0.0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | guillaume ringwald |
| ایمیل نویسنده | gring.fr@gmail.com |
| آدرس صفحه اصلی | https://github.com/pypa/example-project |
| آدرس اینترنتی | https://pypi.org/project/awsLogger/ |
| مجوز | - |
# awsLogger
AwsLogger is a simple logging utility.
It allow you to log all type of data ( string, numbers, list, dictionaries or even custom objects ) into a file and push it to amazon s3.
## Installation
```
pip install awsLogger
```
## How to use
First import awsLogger:
```
import awsLogger
```
To log on your local machine:
```
awsLogger.log("this will be added to your log file", config)
```
To push current file to amazon s3:
```
awsLogger.push(config)
```
To log on your local machine and push to amazon s3:
```
awsLogger.logAndPush("this will be added to your log file and pushed to aws", config)
```
## How to configure
```
config = {
"awsId":<Your aws api id>,
"awsSecret":<Your aws api secret key>,
"projectId":<Identifier, if bucket name is not specifed, it will be used as bucket name, it will be used to generate a log file name if no log file name is specified>,
"bucketName":<The s3 bucket where to put the log file>,
"bucketPathFromRoot":<path on s3 bucket>
"fileName":"logfile name"
"filePath":"local file path"
}
```
All configuration entries are optional. if no awsId and no awsSecret are given, it will use your system default.
نیازمندی
| مقدار | نام |
|---|---|
| - | boto3 |
نحوه نصب
نصب پکیج whl awsLogger-0.0.9:
pip install awsLogger-0.0.9.whl
نصب پکیج tar.gz awsLogger-0.0.9:
pip install awsLogger-0.0.9.tar.gz