CloudWatch Logging SDK for Rust
The CloudWatch Logging SDK for Rust provides a simple and efficient way to log to Amazon CloudWatch.
Features
- Easy setup for CloudWatch logging.
- Automatic batching and non-blocking flushes for optimal performance.
- Seamless panic logging for enhanced reliability.
- Singleton feature for easy access to the logger from anywhere in your application.
- Thread-safe, ensuring consistent logging across multithreaded applications.
Installation
Add the following dependency to your Cargo.toml file:
[]
= "0.2.5"
Breaking Changes
Version 0.2.0
- Entry point is now
LoggerHandleinstead ofLogger Logger::getis nowLoggerHandle::get_or_setupwith thesingletonfeature enabled- Now takes static string slices instead of owned strings.
The api is now stable and will not change unless there is a major version bump. Migrating to the new version requires very little effort, everything remained the same outside the entry point.
Usage
use *;
async
__doc_test!;
Logging Panics
use *;
async
__doc_test_panics!;
singleton Feature
use *;
async
__doc_test!;
singleton Feature: initializing with environment variables
use *;
use env;
async
__doc_test!;
Documentation
For more information, please refer to the current documentation.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgements
We'd like to acknowledge the incredible work of the Rusoto community for their AWS SDK, their thoughtful implementation of Smithy, and their dedication to the Rust community.
Rusoto & Official AWS SDK for Rust
Rusoto is no longer maintained, although, it is still appropriate for and used in production environments. Once the official AWS SDK for Rust is stable, this crate will be updated to use it instead.