2010-08-24, 21:14
I have seen this done pretty much everywhere where you have to set setting to enable detail logging. ie debug logs.
Why not log everything to memory and then output to a file when we have exit the program or when the program crashes ?
The only side effect is that memory taken by the log will get bigger which perhaps we can handle by flushing log to disk when app is idling.
This should eliminate request for debug logs.
Why not log everything to memory and then output to a file when we have exit the program or when the program crashes ?
The only side effect is that memory taken by the log will get bigger which perhaps we can handle by flushing log to disk when app is idling.
This should eliminate request for debug logs.