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.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6458b2daf4ed62948d7bdc87911dda65250424e8bc785ef8469c0b15789adf63 |
|
MD5 | bc60387c09de327ad9529dc3376cd4e0 |
|
BLAKE2b-256 | cbc6d3ef94b665d42779f915cfda82c0abc0f2287f0fd360d41e17e24cee9974 |