Azure Data Table Logging
A Python package that simplifies logging into Azure Data Tables.
Features
- Stores Python log events in Azure Data Tables.
- Automatically creates the table if it does not already exist.
- Supports standard logging levels such as
DEBUG,INFO,WARNING, andERROR.
Prerequisites
- Python 3.12 or higher
- An Azure Storage Account
- An access key for the storage account
Installation
Install the package from PyPI:
pip install azt-logging
Example Usage
import os
from azt_logging import create_logger
logger = create_logger(
st_account_name=os.environ["AZURE_STORAGE_ACCOUNT_NAME"],
account_key=os.environ["AZURE_STORAGE_ACCOUNT_KEY"],
table_name="application_logs",
)
logger.info("Application started.")
logger.warning("This is a warning.")
logger.error("Something went wrong.")
Keep your Azure account key in an environment variable instead of placing it directly in source code.
Known Limitations
If an Azure table with the specified name is currently being deleted, Azure may return a TableBeingDeleted error until the deletion has completed.
License
This project is licensed under the MIT License.
Metadata
Release files for azt-logging 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| azt_logging-0.1.0.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| azt_logging-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.4 kB
Release files / azt_logging-0.1.0.tar.gz
| Download URL | azt_logging-0.1.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a1d9124dcd64c7f2da6786f6ba1dde82aaae8655800c4031387b98466e16f08
|
|
BLAKE2b-256 checksum How to use checksums |
24e1856594dd9810c10e3b374f82b01cb33e43e40abbfd663d563a0507c07051
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / azt_logging-0.1.0-py3-none-any.whl
| Download URL | azt_logging-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61dae595f5033c0491cc41d27490d48bcd2c512a14f9d03ef369b043b4323732
|
|
BLAKE2b-256 checksum How to use checksums |
e977c2fa0e0c5d724c295466a439b598e3ab0b7fa1d22f8e29ca8a8937be82a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|