wtrace icon indicating copy to clipboard operation
wtrace copied to clipboard

Support logging to a file in JSON format

Open ayoubfaouzi opened this issue 1 year ago • 2 comments

Hello @lowleveldesign

Awesome project ! I found pretty much everything I needed, from the ability to trace a process and its childs, limiting to a set of handlers, or filtering on specific keywords. The only missing thing is a flexible output option.

Correct me if I am wrong, at the moment, the tool can only write to stdout, so you need to pipe it to a file then manually parse the output which is not good (as parsing cli output is a bad pattern anyway).

I believe producing in JSON format will be helpful for many folks.

Cheers.

ayoubfaouzi avatar Feb 09 '24 19:02 ayoubfaouzi

Hi @LordNoteworthy ,

Thank you for the suggestion. Right now, the custom event properties are passed from the handlers as string, so adding custom output formatting will require some work. I do not have much free time for this now, but I will try to implement it in the next release.

lowleveldesign avatar Feb 10 '24 06:02 lowleveldesign

Awesome ! Thank for your great work. Looking forward to it !

ayoubfaouzi avatar Feb 10 '24 06:02 ayoubfaouzi