kworkflow / patch-hub

patch-hub is a TUI that streamlines the interaction of Linux developers with patches archived on lore.kernel.org
GNU General Public License v2.0
7 stars 6 forks source link

Write current patch-hub execution logs to `latest.log` file #58

Closed lorenzoberts closed 3 weeks ago

lorenzoberts commented 1 month ago

Description:

All logs from the current patch-hub execution should be written to a specific file. The file should retain its current logs until another patch-hub execution begins. Additionally, the current behavior of saving each execution log in a separate file to preserve log history should remain unchanged.

Motivation:

Currently, for each patch-hub run, we save a separate log file. This is great for preserving the log history of old runs but not ideal for debugging patch-hub in real-time. A simple solution to make debugging easier would be to have an additional log file with a fixed path, like latest.log. This file would always contain the logs of the current patch-hub run, allowing developers to open another terminal and use a command like watch -n 0.5 -d cat latest.log to see the logs as they are generated.