adds example and metadata
This commit is contained in:
parent
9b6c4e8daa
commit
f1f9a32703
@ -2,6 +2,11 @@
|
|||||||
name = "tracing-layer-win-eventlog"
|
name = "tracing-layer-win-eventlog"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
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]
|
[dependencies]
|
||||||
tracing = "0.1.40"
|
tracing = "0.1.40"
|
||||||
|
16
README.md
16
README.md
@ -1,2 +1,18 @@
|
|||||||
# tracing-layer-win-eventlog
|
# tracing-layer-win-eventlog
|
||||||
Layer for the *tracing_subscriber* to write to the Windows 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!");
|
||||||
|
}
|
||||||
|
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user