logdash

Crates.iologdash
lib.rslogdash
version1.0.3
created_at2025-06-05 19:37:49.76778+00
updated_at2025-06-06 09:38:15.654622+00
descriptionLogdash.io simple client
homepagehttps://github.com/logdash-io/rust-sdk
repositoryhttps://github.com/logdash-io/rust-sdk
max_upload_size
id1702252
size207,387
Aleksander Błaszkiewicz (ablaszkiewicz)

documentation

README

logdash - RUST SDK

Logdash is a zero-config observability platform. This package serves an rust interface to use it.

Pre-requisites

Setup your free project in less than 2 minutes at logdash.io

Installation

cargo add logdash

Logging

get API KEY from env LOGDASH_API_KEY


let (logger, _) = logdash::create_logdash(logdash::Config::default());

// Send an info log message
logger.info("Rust SDK example");

get API KEY from config

let (l, _) = logdash::create_logdash(logdash::Config::default().api_key("Your Api Key".into()));

// Send an info log message
l.info("Rust SDK example with API key");

Metrics

let (_, metrics) = logdash::create_logdash(logdash::Config::default());

// create a metric
metrics.set("user".into(), 0.0)
// update the metric
metrics.mutate("user".into(), 1.0)

get API KEY from config

let (_, m) = logdash::create_logdash(logdash::Config::default().api_key("Your Api Key".into()));

// create a metric
m.set("user".into(), 0.0)
// update the metric
m.mutate("user".into(), 1.0)

View

To see the logs or metrics, go to your project dashboard

logs delta

Configuration

Parameter Required Default Description
apiKey no - Api key used to authorize against logdash servers. If you don't provide one, logs will be logged into local console only
host no - Custom API host, useful with self-hosted instances
verbose no - Useful for debugging purposes

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.

Commit count: 37

cargo fmt