Python client for QwhaleLogs API
Project description
QWhaleLogsClient
QWhaleLogs client lib for saving logs in remote service
Install
$> pip install qwhale-logs-client
Get token
Go to login After the login go to get_token
Logging example
import logging
from qwhale_logs_client import init
init(token="<YOUR_TOKEN>", batch_site=1) # Init logs capture
# The batch site is determine how many logs to send in one request
# For fewer sizes more requests are made (default to 100)
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logging.info("Some log") # Normal use
# Now your logs are sent to the QWhaleLogsService
Loguru example (Recommended)
from loguru import logger
from qwhale_logs_client import init
init(token="<YOUR_TOKEN>", batch_site=1) # Init logs capture
# The batch site is determine how many logs to send in one request
# For fewer sizes more requests are made (default to 100)
logger.info("Some log") # normal use
# Now your logs are sent to the QWhaleLogsService
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file qwhale_logs_client-0.1.14.tar.gz
.
File metadata
- Download URL: qwhale_logs_client-0.1.14.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff834c6e96fb84da097c2ea72c802b93bcbe4400c1ad7eb6b03f5c799ac7e4e8 |
|
MD5 | cad1aa98c9521477b1e50e5f3935aaa8 |
|
BLAKE2b-256 | f3a19f5280c42cd310203a5f7ec87a187adf373b5365c779f4bfd54acb95f6e6 |
File details
Details for the file qwhale_logs_client-0.1.14-py3-none-any.whl
.
File metadata
- Download URL: qwhale_logs_client-0.1.14-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ad2ff067377a561e904242e59519325c6681284d92e27041d80a3d8c6939f84 |
|
MD5 | 6654477df4234274537e7cf618682350 |
|
BLAKE2b-256 | 9c1660c58ad1cb6d38fb3fb711ae1b4be8d868c07dc8090b44a5feda4d4566a4 |