Logging utilities for Python applications
Project description
MTK Logger
Logging utilities for MarkTrack applications.
Installation
To install from GitHub Packages:
# Configure pip to use GitHub Packages
pip config set global.extra-index-url https://YOUR_GITHUB_TOKEN@github.com/pprasquier/mtk_logger/raw/main/dist/
# Install the package
pip install mtk_logger
Or with Poetry:
# Add GitHub Packages as a source
poetry source add --priority=supplemental github https://github.com/pprasquier/mtk_logger/raw/main/dist/
# Install the package
poetry add mtk_logger
Usage
from mtk_logger.logger import get_logger
logger = get_logger(__name__)
logger.info("This is a log message")
For FastAPI middleware:
from mtk_logger.fastapi_middleware import RequestLoggingMiddleware
app.add_middleware(RequestLoggingMiddleware)
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
mtk_logger-0.3.0.tar.gz
(3.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 mtk_logger-0.3.0.tar.gz.
File metadata
- Download URL: mtk_logger-0.3.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7172793ac6040e87542fa1d22eb3e5873ebbea9a5f0cca20dbd7a19bad92b458
|
|
| MD5 |
bb9904eafdfcfca59516715e35af9c9a
|
|
| BLAKE2b-256 |
86e8b300b676fafaedd3680f493940809db7fd5016b03d19a8bf47ff4f0d4859
|
File details
Details for the file mtk_logger-0.3.0-py3-none-any.whl.
File metadata
- Download URL: mtk_logger-0.3.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22b0d7cdea3280386d377b4559a9cef1d3816211202ac5438640e452a609fc0c
|
|
| MD5 |
cf7cee097dd05062ba9035769a45dc1e
|
|
| BLAKE2b-256 |
f899fc84142ab8b96e6caa8b9d372524db02cff26bf652aca3f1bee0bde07656
|