klogg icon indicating copy to clipboard operation
klogg copied to clipboard

[Feature request] log from stdio

Open grebulon opened this issue 5 years ago • 4 comments

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.

grebulon avatar Dec 03 '20 12:12 grebulon

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.

variar avatar Dec 17 '20 09:12 variar

And I'm not talking about redirecting Mac's [horrible] console stream.

grebulon avatar Dec 17 '20 09:12 grebulon

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

xaljer avatar Jul 25 '21 03:07 xaljer

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.

xaljer avatar Jul 05 '23 15:07 xaljer