jameshball / osci-render-juce

〰📺🔊 Synthesizer for making music by drawing objects on an oscilloscope using audio. Now as an audio plugin!
GNU General Public License v3.0
8 stars 0 forks source link

Log any runtime errors to a file #4

Open jameshball opened 1 year ago

jameshball commented 1 year ago

Should be trivial to create the logger itself using FileLogger which should be a member of the PluginProcessor class so that it persists.

The hard part is finding all aspects of osci-render where errors could possibly occur and logging them rather than silently ignoring them or hard crashing like we are at the moment!

Things that immediately come to mind are:

Goes without saying that over-logging is much more important than under-logging as this is the number 1 most useful tool for debugging when you don't have access to a user's machine.

ASIDE: There should be a max log file size to prevent somehow using up all space on user's machine! (this mistake was made with legacy osci-render, oops)