Linux command
toolong 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Open and view a log file
tl [access.log]
Merge and view multiple logs by timestamp
tl [server.log] [app.log] --merge
Pipe live output into toolong
tail -f [/var/log/syslog] | tl
Tail a log file
tl --tail [access.log]
说明
toolong is a terminal application for viewing and analyzing log files, including JSONL. It can open multi-gigabyte files instantly, live-tail logs, auto-detect timestamps for merging multiple files, handle compressed .bz/.bz2 files, and syntax-highlight common log formats.
参数
- --merge
- Merge multiple log files by timestamp.
- --tail
- Start at the end of the file.
- -h, --help
- Display help information.
- -V, --version
- Display version information.
FAQ
What is the toolong command used for?
toolong is a terminal application for viewing and analyzing log files, including JSONL. It can open multi-gigabyte files instantly, live-tail logs, auto-detect timestamps for merging multiple files, handle compressed .bz/.bz2 files, and syntax-highlight common log formats.
How do I run a basic toolong example?
Run `tl [access.log]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --merge do in toolong?
Merge multiple log files by timestamp.