QuinterApp / Quinter

The accessible Quinter Twitter client
11 stars 9 forks source link

adding logging to Quinter #25

Open mehgcap opened 3 years ago

mehgcap commented 3 years ago

It would be easier to test things, and generally track what's going on, if Quinter supported logging. I plan to add this feature. I'll start by writing to a file which will be replaced when the app restarts, but other options (date-based rollover, storing N old files, etc) can be discussed if necessary. A logLevel preference will also be added in the advanced tab.

TheQuinbox commented 3 years ago

Be my guest! :). Thanks for all your hard work!

Sent from my iPhone

On Jul 26, 2021, at 5:48 AM, Alex Hall @.***> wrote:

 It would be easier to test things, and generally track what's going on, if Quinter supported logging. I plan to add this feature. I'll start by writing to a file which will be replaced when the app restarts, but other options (date-based rollover, storing N old files, etc) can be discussed if necessary. A logLevel preference will also be added in the advanced tab.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

TheQuinbox commented 3 years ago

@mehgcap, any updates on this one? No problem if not, I have a pretty good idea of how to do it, with a few minor issues, but figured I'd see if this is still something you're working on or not before I accidentally overwrite work you've done. Thanks.

mehgcap commented 3 years ago

I have it working. I didn't get to adding log statements everywhere, but I can merge what I have so others can use it. The problem right now is that logs don't roll over, so the Quinter log quickly becomes quite large if set to debug mode. I still want to get that fixed. Should logs roll over each day, or should the old log be lost when the app restarts?

TheQuinbox commented 3 years ago

Probably when the app restarts. The only problem with that approach is traceback errors when users report errors. If you still have more work to do that's also fine, just figured I'd check. :)