New `logs` CLI command
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by locating the Fibratus CLI command definitions and how the project reads its log file; the issue does not name specific files or tests. Check how existing commands parse flags, then identify the log path and available log format. Done means fibratus logs supports the requested modifiers and prints matching lines, with realtime tailing when -f is used.
由索引模型根据 Issue 内容生成。
描述
Motivation
Examining the Fibratus logs can be a hassle, especially if the end user is not familiar with Powershell. It would be much more convenient if the Fibratus CLI provided the facilities for grepping log files, filtering relevant log messages, etc.
Feature
Expand the Fibratus CLI with a new logs command. The command should ideally provide the following set of modifiers:
-f: tails the log file in realtime as the file gets written by the Fibratus process-n: shows the last N lines of the log file-h: shows the first N lines of the log file-l: filters the log messages by the log level (debug, info, warning, and error)--grep: accepts the Go-compatible regular expression and applies on each log line. If it produces any match, the log line is shown on the console.
If the command is run without any modifiers, the entire log file is read and dumped on the console.
Examples:
Show last 10 lines and watch for subsequent changes in realtime:
$ fibratus logs -n 10 -f
Filter logs by info level
$ fibratus logs -l info
Additional context
For watching the file changes in realtime, consider the usage of the fsnotify package.
- 主要语言
- Go
- 星标
- 2.6k
- 派生
- 222
- 平均合并
- 16 小时 23 分钟
- 30 天内合并 PR
- 11
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rabbitstack/fibratus 的其他 Issue
-
Service crashes on Windows Server 2016: "panic: sub-authority index out of range" in RidToString未关闭type: bug
难度 2/5 1-3 小时 新手友好度 82/100
rabbitstack/fibratus#761 · 1 条评论 ·
维护者通常 1 天内回复
-
CI: the test job has been red since September, and TestFsProcessor looks like a real mmap regression未关闭ci
难度 4/5 3-5 天 新手友好度 22/100
rabbitstack/fibratus#754 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
ci rules type: enhancement
难度 5/5 一周以上 新手友好度 15/100
rabbitstack/fibratus#715 ·
维护者通常 1 天内回复
-
scope: hardering type: enhancement
难度 5/5 一周以上 新手友好度 15/100
rabbitstack/fibratus#713 ·
维护者通常 1 天内回复
-
needs: config scope: events/telemetry type: feature
难度 4/5 3-5 天 新手友好度 35/100
rabbitstack/fibratus#710 ·
维护者通常 1 天内回复
查看 rabbitstack/fibratus 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
nebari-dev/llm-serving-pack#270 · 1 条评论 ·
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
area/controller
难度 2/5 1-3 小时 新手友好度 70/100
volcano-sh/kthena#2109 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
unbound-force/replicator#193 ·
维护者通常 2 天内回复