Update README.md
This commit is contained in:
parent
c545290e3c
commit
8190e33ca6
@ -14,9 +14,7 @@ New-EventLog -LogName Application -Source hello_world
|
|||||||
use tracing_subscriber::{layer::SubscriberExt as _, util::SubscriberInitExt as _};
|
use tracing_subscriber::{layer::SubscriberExt as _, util::SubscriberInitExt as _};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("Hello, world!");
|
let eventlog = tracing_layer_win_eventlog::EventLogLayer::new("hello_world");
|
||||||
|
|
||||||
let eventlog = tracing_layer_win_eventlog::EventLogLayer::new("hello_world".to_owned());
|
|
||||||
|
|
||||||
tracing_subscriber::registry()
|
tracing_subscriber::registry()
|
||||||
.with(eventlog)
|
.with(eventlog)
|
||||||
@ -51,4 +49,4 @@ source: windows
|
|||||||
message: currently in windir
|
message: currently in windir
|
||||||
path: "\"C:\\Windows\""
|
path: "\"C:\\Windows\""
|
||||||
|
|
||||||
```
|
```
|
Loading…
x
Reference in New Issue
Block a user