Python SDK for logdash logging and metrics service
Project description
logdash - Python SDK
Logdash is a zero-config observability platform. This package serves as a Python interface to use it.
Pre-requisites
Setup your free project in less than 2 minutes at logdash.io
Installation
pip install logdash
Logging
from logdash import create_logdash
# Initialize with your API key
logdash = create_logdash({
# optional, but recommended to see your logs in the dashboard
"api_key": "<your-api-key>",
})
# Access the logger
logger = logdash.logger
logger.info("Application started successfully")
logger.error("An unexpected error occurred")
logger.warn("Low disk space warning")
Metrics
from logdash import create_logdash
# Initialize with your API key
logdash = create_logdash({
# optional, but recommended as metrics are only hosted remotely
"api_key": "<your-api-key>",
})
# Access metrics
metrics = logdash.metrics
# to set absolute value
metrics.set("users", 0)
# to modify existing metric
metrics.mutate("users", 1)
View
To see the logs or metrics, go to your project dashboard
License
This project is licensed under the MIT License.
Contributing
Contributions are welcome! Feel free to open issues or submit pull requests.
Support
If you encounter any issues, please open an issue on GitHub or let us know at contact@logdash.io.
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
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 logdash-0.2.2.tar.gz.
File metadata
- Download URL: logdash-0.2.2.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9f82b4c0e5498b643c8ee243c802dd4e207cb7269b10c205279f27402a2e0db
|
|
| MD5 |
5b05e032eff77e359e5f43c8af452b33
|
|
| BLAKE2b-256 |
45d4028dd6360260ede1e03899cc824e8f856c835efc4d2a5ab6c71a58a3cf9f
|
File details
Details for the file logdash-0.2.2-py3-none-any.whl.
File metadata
- Download URL: logdash-0.2.2-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f12410883222201f4c3e19185e20cd047c0491a4ee0aafe7748dd3f65ed3b133
|
|
| MD5 |
de2fc0279fb1a162824ac63b8290f982
|
|
| BLAKE2b-256 |
254785d5dc8a99944f686cd096275e2da87a12ff1d25649e6d3ae5ac19359b94
|