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 and set level
log.addHandler(llhandler)
log.setLevel('INFO')
log.info('Some Log Message!', extra={
'metadata': {'some_important_key': 'that keys value'},
'tags': ['some tag', 'another tag']
})
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
LiteLogger-0.1.1.tar.gz
(4.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file LiteLogger-0.1.1.tar.gz.
File metadata
- Download URL: LiteLogger-0.1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3c8febe4ad51962b838ed7dfb7e329b32d3d0c19f377132ae0354d1470db6b4
|
|
| MD5 |
8b0945e3c155365237e171af809c3843
|
|
| BLAKE2b-256 |
347c9b995e1b92a9324f9980420ea43ad3915696b46b60fb6a1ec626eaea441e
|
File details
Details for the file LiteLogger-0.1.1-py2.py3-none-any.whl.
File metadata
- Download URL: LiteLogger-0.1.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9394c329b8497d14916a5709afc705aef048759766f35c4e25194cb91f08a22
|
|
| MD5 |
a3eb8772543573529e1ad50b956a0b97
|
|
| BLAKE2b-256 |
829e6d53cf5b7fb1795ff249c0f6e01e1fb4f561107ca8aa8cc8b8991c5fc583
|