1
vote
Add Delta overloads to Watches
I do this manually with external if statements to reduce the number of logged entries, but it would be much cleaner if there were overloaded methods to do this for each watch. For example:
log.WatchInteger(“MyName”, currentValue);
would also have
log.WatchInteger(“MyName”, currentValue, previousValue);
This version WatchInteger would only create a watch entry if the currentValue differs from the previousValue would also update previousValue to currentValue. previousValue would be a var/ref/etc. depending on language.
Granted it would double the number of overloads for each watch, but I feel it would be worth it and makes the logging code much cleaner in one’s source code.
