klogg
klogg copied to clipboard
[Feature request] log from stdio
I'm using klogg with input from ADB by running: adb logcat > android.log and opening the file. It would be helpful if klogg could exec "adb logcat" and capture the output directly to the window.
There was a fork that tries to do something similar. I suppose adding a dialog to allow executing adb logcat > "some_temp_file" and automatically opening this file in follow mode could be a solution to this issue.
And I'm not talking about redirecting Mac's [horrible] console stream.
I also work in this mode (adb logcat > android.log). Since klogg can refresh the file like tail -f, I think it's not very different from using stdio directly.
I also filter out some results to console, and use klogg to do detailed analysis. Like this:
adb logcat | tee android.log | rg -f common_issue_patterns.txt -e pattern_i_care_at_this_time
Now I also think this could be an useful feature, so that I don't need to operate two windows. I think this feature could be: let user configure a command as a source for a file. so this file can have a start/stop button, start means run the command and stop means kill the command. finally, I can start to capture log and stop to research log on a single button inside klogg.