Utilities for logging and sending logs.
Project description
liblogging
Utilities for logging and sending logs.
Usage
from liblogging.logger import logger
# Log a simple message
logger.info("This is an info message")
# Log a message with context
logger.track_start("Starting process", message_type="process_start")
logger.track_end("Ending process", message_type="process_end")
# Log a request
@log_request("user_id", "session_id")
def process_request(user_id, session_id):
logger.info("Processing request")
process_request(user_id=123, session_id="abc")
Tips
- If using Kafka to send messages, please use
kafka-python==2.0.2.
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
liblogging-0.1.8.tar.gz
(11.9 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 liblogging-0.1.8.tar.gz.
File metadata
- Download URL: liblogging-0.1.8.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b65a49996422c6c3739a0a73d4964779aa3be80895497c6c89a46be21ac37338
|
|
| MD5 |
7aea1f33ae7b2ba1c62ceb70e1b50e87
|
|
| BLAKE2b-256 |
32b561cc1bed4e8e0eca2472a8b61a36a3c09f3951aa40d1b2970df6054dd72f
|
File details
Details for the file liblogging-0.1.8-py3-none-any.whl.
File metadata
- Download URL: liblogging-0.1.8-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c5d84462ef7b5207a2bd31527efe97307ae454f3ce9424357a02a9c570be7ac
|
|
| MD5 |
1af71e38a990d7e72676ad3b2d363537
|
|
| BLAKE2b-256 |
ef66b40cd1ccfc3f31cc7b6456dda8a222481a20eb7cd6079e6d581ac1e37575
|