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
Close
Hashes for qwhale_logs_client-0.1.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff834c6e96fb84da097c2ea72c802b93bcbe4400c1ad7eb6b03f5c799ac7e4e8 |
|
MD5 | cad1aa98c9521477b1e50e5f3935aaa8 |
|
BLAKE2b-256 | f3a19f5280c42cd310203a5f7ec87a187adf373b5365c779f4bfd54acb95f6e6 |
Close
Hashes for qwhale_logs_client-0.1.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ad2ff067377a561e904242e59519325c6681284d92e27041d80a3d8c6939f84 |
|
MD5 | 6654477df4234274537e7cf618682350 |
|
BLAKE2b-256 | 9c1660c58ad1cb6d38fb3fb711ae1b4be8d868c07dc8090b44a5feda4d4566a4 |