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.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d677657de00d3e83120e0effe1b20fba0ecdcf075a56481be10bd46a6d563fa1 |
|
MD5 | c4d3c3b63280d1bdfd080f7e04927522 |
|
BLAKE2b-256 | 636240abd8c08b4362c0e3dea1031bb09133b4c6799df0abd30f08beab7058fa |
Close
Hashes for qwhale_logs_client-0.1.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcdc05429d0aec946c0ce434e2f8566278962f49586a82171b2241c205142252 |
|
MD5 | 77bd92ce7e9ee28996fe4d04c5f5326c |
|
BLAKE2b-256 | 417beb1bd7e9514d595a098da792a4f3914dd0c90e38d048d5545a960964501f |