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.7.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.7.tar.gz.
File metadata
- Download URL: liblogging-0.1.7.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 |
95d31a060d7e385c58ce9e16cb20c4a118ffcaf2709904030c6cb467a540a7cd
|
|
| MD5 |
3884f1ca56e424298a3525917f66255f
|
|
| BLAKE2b-256 |
0bbd54d065591312b2c918a17a89a3d8c245a86d9bb8d2be7335efa4436a5396
|
File details
Details for the file liblogging-0.1.7-py3-none-any.whl.
File metadata
- Download URL: liblogging-0.1.7-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 |
b1c618df7ab6b900e0f038709f776b2e9d0f4898e9b59b514befcaa4bf12433c
|
|
| MD5 |
1ab3cd37ccb845e794fcd6584d349498
|
|
| BLAKE2b-256 |
108038acaebe1baa93b477b4e76c3a83d334cb0b2f85ea00da1e684b5c5274d3
|