New `logs` CLI command
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Go
- Estrellas
- 2.6k
- Forks
- 222
- Merge medio
- 16 h 23 min
- PR fusionados (30 d)
- 11
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de rabbitstack/fibratus
-
Service crashes on Windows Server 2016: "panic: sub-authority index out of range" in RidToStringAbiertotype: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
rabbitstack/fibratus#761 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
CI: the test job has been red since September, and TestFsProcessor looks like a real mmap regressionAbiertoci
Dificultad 4/5 3-5 días Aptitud para principiantes 22/100
rabbitstack/fibratus#754 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
ci rules type: enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
rabbitstack/fibratus#715 ·
Los mantenedores suelen responder en 1 día
-
scope: hardering type: enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
rabbitstack/fibratus#713 ·
Los mantenedores suelen responder en 1 día
-
Add `WMI` activity telemetryAbiertoneeds: config scope: events/telemetry type: feature
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
rabbitstack/fibratus#710 ·
Los mantenedores suelen responder en 1 día
Todos los issues de rabbitstack/fibratus
Issues similares
-
[bug] Explorer trims leading spaces on file namesPosiblemente ocupada @unshade la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
mickael-kerjean/filestash#1033 · 1 comentario ·
-
Update Tailscale dependency for Android cgo fallback fixPosiblemente ocupada @lozbrown la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
[BUG] HTTP remote call timeouts can be returned as 500Posiblemente ocupada @XnLemon la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
apache/dubbo-go-pixiu#1096 ·
Los mantenedores suelen responder en 1 día
-
conversation: ConverseAlpha1 and ConverseAlpha2 panic on empty choices or nil function call and return misleading error on scrubber failurePosiblemente ocupada @patelshivani2283-lab la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día