Updated README page to reflect latest changes
Signed-off-by: Aravinda Vishwanathapura <mail@aravindavk.in>
This commit is contained in:
parent
49b988cdb0
commit
3ff858cef9
1 changed files with 2 additions and 1 deletions
|
|
@ -31,7 +31,8 @@ Register the logwatcher, pass a closure and watch it!
|
|||
```rust
|
||||
let mut log_watcher = LogWatcher::register("/var/log/check.log".to_string()).unwrap();
|
||||
|
||||
log_watcher.watch(&|line: String| {
|
||||
log_watcher.watch(&mut move |line: String| {
|
||||
println!("Line {}", line);
|
||||
LogWatcherAction::None
|
||||
});
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue