New `logs` CLI command
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Go
- Stelle
- 2.6k
- Fork
- 222
- Merge medio
- 16h 23m
- PR unite (30g)
- 11
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di rabbitstack/fibratus
-
Service crashes on Windows Server 2016: "panic: sub-authority index out of range" in RidToStringApertatype: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
rabbitstack/fibratus#761 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
CI: the test job has been red since September, and TestFsProcessor looks like a real mmap regressionApertaci
Difficoltà 4/5 3-5 giorni Idoneità per principianti 22/100
rabbitstack/fibratus#754 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
ci rules type: enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
rabbitstack/fibratus#715 ·
I maintainer di solito rispondono entro 1 giorno
-
scope: hardering type: enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
rabbitstack/fibratus#713 ·
I maintainer di solito rispondono entro 1 giorno
-
Add `WMI` activity telemetryApertaneeds: config scope: events/telemetry type: feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
rabbitstack/fibratus#710 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di rabbitstack/fibratus
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
unbound-force/replicator#193 ·
I maintainer di solito rispondono entro 2 giorni
-
A Gemini stream that fails partway completes the call with the partial textForse già presa @bnaylor l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
go-steer/core-agent#1600 ·
I maintainer di solito rispondono entro 1 giorno
-
bug raised-by:reviewer
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
medici-finance/assay#7655 ·
I maintainer di solito rispondono entro 1 giorno
-
Add /exit and /quit commandsApertaenhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
Edwin-metcalf/MetCode#67 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno