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.9.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.9.tar.gz.
File metadata
- Download URL: liblogging-0.1.9.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 |
237a32989dceaf84f25021d2ca294190bfc900c33198d17318e8a83accf2df28
|
|
| MD5 |
44750f32bc9e5ccfbc4aa0bb4091ed45
|
|
| BLAKE2b-256 |
47d9e67acac6e14c3764f3dd0eb74b02e00d2208d73c6340fd5570256246c0e5
|
File details
Details for the file liblogging-0.1.9-py3-none-any.whl.
File metadata
- Download URL: liblogging-0.1.9-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 |
b768805966ada3ad6dc34d6e9125cff07b051c4af95164f51563a1329f7a34ab
|
|
| MD5 |
8f094cd5b5885f36cfe8439631b3059f
|
|
| BLAKE2b-256 |
bfab2a7f70f1567c40ef987cb933121e53736545fab9cca727d9daa9d89fc121
|