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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1aa3141670a0920b0894d4d6c55339224de6b7611943beb764d049c88a81a108 |
|
MD5 | 6c2262317c08ae7a5d6d0f30b43ce63f |
|
BLAKE2b-256 | fca5ba5fb36d4fce3ddc2daa4596011d027f8878b3efdaa04640c2e83e2c226f |
Close
Hashes for qwhale_logs_client-0.1.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c9a589c68cedf66f9c09bb83e52050d0d3595de48513165a5b044df7feb5bb9 |
|
MD5 | 4dca7f712a6ae65727667246f2b8c92b |
|
BLAKE2b-256 | af58ef2f1a66be9b265298b507b9de4f829fe686758fb34ab2390923f69477f6 |