https://github.com/ckampfe/wlog
https://github.com/ckampfe/wlog
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/ckampfe/wlog
- Owner: ckampfe
- License: bsd-3-clause
- Created: 2020-10-08T16:31:06.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-09T17:02:59.000Z (over 5 years ago)
- Last Synced: 2025-02-01T20:11:16.568Z (over 1 year ago)
- Language: Rust
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wlog
Like `watch`, but with logging.
Useful to repeatedly run a command and see what changed in successive invocations.
---
## example
```
$ wlog -n 2 "wc -l src/main.rs"
16:52:56 [INFO] 93 src/main.rs
16:52:58 [INFO] 93 src/main.rs
16:53:00 [INFO] 93 src/main.rs
16:53:02 [INFO] 93 src/main.rs
16:53:04 [INFO] 93 src/main.rs
16:53:06 [INFO] 93 src/main.rs
16:53:08 [INFO] 93 src/main.rs
```
## use
```
$ wlog -h
wlog ff6ac2c
USAGE:
wlog [FLAGS] [OPTIONS]
FLAGS:
-h, --help Prints help information
-q, --quiet Suppress terminal output. Has no effect on file output
-V, --version Prints version information
OPTIONS:
-f, --file Log output to a file
-n, --interval Time in seconds between two ticks [default: 2]
ARGS:
The command to repeat
```