Option to *Append* to ServiceConsoleLog.txt
Posted: Fri 15 Jan 2021 2:46 pm
No doubt this is a personal preference, but in almost all the code I write log files are only ever appended to. The "pruning" of the logs is a separate operation; sometime built in, sometimes external like Unix logrotate (https://linux.die.net/man/8/logrotate).
That preference comes out of considerable experience debugging seemingly nondeterministic bugs, often between collaborative asynchronous systems. (I've also encountered bugs that behaved differently when a debugger was attached - impossible to catch in that way).
As an example - while tinkering around for viewtopic.php?f=40&t=18805 I'm looking through some logging to wrap my head around when CMX knows an update is waiting and the interaction with the Upgrade Available indicator (which I find helpful ... or will). Of the ServiceConsoleLog.txt files I happened to have an image of I did note that the "You are not running the latest..." shows up in a different place - which confirms the 2 different paths we've been discussing.
I'd also welcome the option to treat the other logs, e.g. the main MXdiags log the same way, and I'd be OK with the option affecting both.
That preference comes out of considerable experience debugging seemingly nondeterministic bugs, often between collaborative asynchronous systems. (I've also encountered bugs that behaved differently when a debugger was attached - impossible to catch in that way).
As an example - while tinkering around for viewtopic.php?f=40&t=18805 I'm looking through some logging to wrap my head around when CMX knows an update is waiting and the interaction with the Upgrade Available indicator (which I find helpful ... or will). Of the ServiceConsoleLog.txt files I happened to have an image of I did note that the "You are not running the latest..." shows up in a different place - which confirms the 2 different paths we've been discussing.
I'd also welcome the option to treat the other logs, e.g. the main MXdiags log the same way, and I'd be OK with the option affecting both.