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.6.tar.gz
(9.2 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.6.tar.gz.
File metadata
- Download URL: liblogging-0.1.6.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d652d732f808dc6a156091cfaa2e154584f23cda4143ff5a0efb406e8d18f962
|
|
| MD5 |
7f449f1c467db42ab16d120c113013af
|
|
| BLAKE2b-256 |
d35a55b49851be47d8a04cf10c1b9896aea03dcae129279f3856f65c3ee48d46
|
File details
Details for the file liblogging-0.1.6-py3-none-any.whl.
File metadata
- Download URL: liblogging-0.1.6-py3-none-any.whl
- Upload date:
- Size: 10.0 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 |
e6e12d04ce13395889a1127c78a80e2f7ec5288bc04706f01e7847533832e8c0
|
|
| MD5 |
badaad94c9233fbbe6657cded6f7773b
|
|
| BLAKE2b-256 |
92bf92a0541a5a9640adee07a8c50421f57737bc5d7b3d096350a2af1bd5e0ad
|