2024-09-15 05:27:13 +00:00
|
|
|
# tspin
|
|
|
|
|
|
|
|
> A log file highlighter based on the `less` pager and basically behaves like any pager.
|
|
|
|
> More information: <https://github.com/bensadeh/tailspin>.
|
|
|
|
|
|
|
|
- Read from file and view in `less`:
|
|
|
|
|
|
|
|
`tspin {{path/to/application.log}}`
|
|
|
|
|
|
|
|
- Read from another command and print to stdout:
|
|
|
|
|
2025-04-22 06:20:48 +03:00
|
|
|
`journalctl {{[-b|--boot]}} {{[-f|--follow]}} | tspin`
|
2024-09-15 05:27:13 +00:00
|
|
|
|
|
|
|
- Read from file and print to `stdout`:
|
|
|
|
|
2025-04-22 06:20:48 +03:00
|
|
|
`tspin {{path/to/application.log}} {{[-p|--print]}}`
|
2024-09-15 05:27:13 +00:00
|
|
|
|
2024-10-20 00:02:10 +02:00
|
|
|
- Read from `stdin` and print to `stdout`:
|
2024-09-15 05:27:13 +00:00
|
|
|
|
|
|
|
`echo "2021-01-01 12:00:00 [INFO] This is a log message" | tspin`
|