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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf126f7844d9153e06d920e3e98fa665fc3d94c3ddc0951bbc41885e9120a232 |
|
MD5 | a5b1e98047582fae1fa4619b967ee00e |
|
BLAKE2b-256 | fedf84c4d3738d4dd83015596e0a92fc886412e4e84c4ebc5191a699e6de06e0 |
Close
Hashes for qwhale_logs_client-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19674cd2d2a8cbabf6ce03d7f23eada8240c19eef6b4eb8ad2dd8e8d3131adfe |
|
MD5 | ffecf4136124ddd5c9a76debcaa0293a |
|
BLAKE2b-256 | f3fc9708adb2b616ee578d12824d66a78260555e818d9554537b380b2456a7df |