adds example and metadata

This commit is contained in:
itsscb 2024-07-17 14:44:39 +02:00
parent 9b6c4e8daa
commit f1f9a32703
2 changed files with 21 additions and 0 deletions

View File

@ -2,6 +2,11 @@
name = "tracing-layer-win-eventlog"
version = "0.1.0"
edition = "2021"
author = ["itsscb <dev@itsscb.de>"]
description = "Layer for the tracing_subscriber to write to the Windows EventLog"
keywords = ["tracing", "tracing_subscriber","layer","eventlog","windows"]
license = "MIT"
repository = "https://github.com/itsscb/tracing-layer-win-eventlog"
[dependencies]
tracing = "0.1.40"

View File

@ -1,2 +1,18 @@
# tracing-layer-win-eventlog
Layer for the *tracing_subscriber* to write to the Windows EventLog
## Usage
```rust
use tracing_subscriber::{layer::SubscriberExt as _, util::SubscriberInitExt as _};
fn main() {
println!("Hello, world!");
tracing_subscriber::registry()
.with(tracing_layer_win_eventlog::EventLogLayer)
.init();
tracing::info!(id = 40, "hello world!");
}
```