test your logging
I have yet to work on a project where we have attempted to test the log statements in the software & I’ve recently found myself asking why. Log statements added by different developers (sometimes guided by a woolly statement on logging in the project coding guidelines) vary in their number, style & usefulness. Logging ends up inconsistent in its level of detail, format & log level. The logging of the same event could end up like any of the following:...