logsnag-0.3.2 has been yanked.
A Logsnag API Wrapper for Rust
logsnag is a simple and efficient Rust library for interacting with the Logsnag API. It supports asynchronous requests and allows easy publication of logs and insights.
Note: this crate is currently being actively developed. It may change a lot until v1.0. Keep this in mind if you're using it for production apps.
Features
- Publish logs to channels with specified event, optional description, icon, and notify flag
- Publish insights with a specified title, event, value, and an optional icon
- Support tags
- Support validation for inputs on the strings (some)
- [TODO] Make wrapper calls easier (ex. &str instead of Strings, inline tag input)
Getting Started
First, add logsnag to your Cargo.toml:
[]
= "0.3.2"
Then, import it in your file(s).
use Logsnag;
use TagHashMap;
use InsightValue; //Only required for Insights
Usage
Here is a basic example of how to use the Logsnag client:
use Logsnag;
use TagHashMap;
use InsightValue;
async
See the API Documentation for more details.
Contributing
Please feel free to submit issues, fork the repository and send pull requests!
Any questions, you can find me (rhh4x0r) on the Official Logsnag Discord Server or submit an issue.