← 返回命令列表

Linux command

tspin 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

View log file

tspin [logfile.log]

Tail and highlight

tspin -f [logfile.log]

Read from stdin

cat [log] | tspin

No pager

tspin --no-pager [logfile.log]

说明

tspin is a log file viewer that automatically applies syntax highlighting to make logs more readable. It detects common log formats and colorizes elements like timestamps, log levels, IP addresses, URLs, and JSON structures without requiring manual configuration. Follow mode (-f) monitors log files in real time, highlighting new entries as they appear, similar to tail -f but with color. The tool can also read from standard input via pipes, integrating into existing logging pipelines. A built-in pager allows scrolling through log files interactively. Custom highlighting rules can be defined through a configuration file for non-standard log formats.

参数

-f
Follow mode.
--no-pager
Disable pager.
--config _FILE_
Config file.
--help
Show help.

FAQ

What is the tspin command used for?

tspin is a log file viewer that automatically applies syntax highlighting to make logs more readable. It detects common log formats and colorizes elements like timestamps, log levels, IP addresses, URLs, and JSON structures without requiring manual configuration. Follow mode (-f) monitors log files in real time, highlighting new entries as they appear, similar to tail -f but with color. The tool can also read from standard input via pipes, integrating into existing logging pipelines. A built-in pager allows scrolling through log files interactively. Custom highlighting rules can be defined through a configuration file for non-standard log formats.

How do I run a basic tspin example?

Run `tspin [logfile.log]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f do in tspin?

Follow mode.