Skip to main content

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 https://logs.qwhale.ml/provider/login After the login go to https://logs.qwhale.ml/api/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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qwhale_logs_client-0.1.8.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

qwhale_logs_client-0.1.8-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file qwhale_logs_client-0.1.8.tar.gz.

File metadata

  • Download URL: qwhale_logs_client-0.1.8.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for qwhale_logs_client-0.1.8.tar.gz
Algorithm Hash digest
SHA256 c680a8fc7ac767eb7268cea2a5415cac5ebabe17764a0c151cfb2b3eb4ed71d2
MD5 10edb1af5cb58508c0f9774aff1ba6cd
BLAKE2b-256 174d7bbea7573b8f0194103c6eb729bd6dbdde6cce417adb5c6d676aaedd139e

See more details on using hashes here.

File details

Details for the file qwhale_logs_client-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: qwhale_logs_client-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for qwhale_logs_client-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 019d9d220db0c3da9b8b7c50ffb8bd43188123a94226dcc70bf27ff6494f70d2
MD5 f0b5b85e76a2afe2de8e80f770fc37e5
BLAKE2b-256 bc6ccdf6dedfcfac5da601707223e59398ff2d4bd354c408e7ea5f07abd8457e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page