Skip to main content

The official LiteLogger client for Python

Project description

LiteLogger for Python

This is the official repo of the LiteLogger client for python. This make it easy to integrate LiteLogger into your existing logging infrastructure.

Installation

pip install LiteLogger

Usage

Below is a simple example. See the 'examples' folder for more comprehensive examples.

import logging
from LiteLogger import LiteLoggerHandler

log = logging.getLogger(__name__)

API_KEY = 'your_api_key'
STREAM_NAME = 'Your Log Stream Name'

# create the LiteLogger Handler
llhandler = LiteLoggerHandler(
	STREAM_NAME,
	API_KEY,
)

# add handler to logger
log.addHandler(llhandler)

log.info('Some Log Message!', extra={
	'metadata': {'some_important_key': 'that keys value'},
	'tags': ['some tag', 'another tag']
})

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

LiteLogger-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

LiteLogger-0.1.0-py2.py3-none-any.whl (3.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file LiteLogger-0.1.0.tar.gz.

File metadata

  • Download URL: LiteLogger-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.6

File hashes

Hashes for LiteLogger-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2b30246a631564083ac3a8ed084e630e118159d584a51815e98c1a2c6b61898e
MD5 c4e247eca71eec3937b6a5501f0621c9
BLAKE2b-256 ba21500bde65a1c284f8f5c79ec3b124f8c0c6111aa42930532ba2b43d2e00e7

See more details on using hashes here.

File details

Details for the file LiteLogger-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: LiteLogger-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.6

File hashes

Hashes for LiteLogger-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0eaa6a4d973c70f59c4465ea37cf87f82a3c3e13916be8708aa68c019ad21476
MD5 7aea63a94572eca93cf7b816381bbb1a
BLAKE2b-256 e1df16c8c5bbf23e25a7f7ea436c0065f887b8de8d6a0222c3ebe8144d91e7c8

See more details on using hashes here.

Supported by

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