redmine6448: Mark's clean-up of Log()ging

This is the part of @markburgess's development branch related to Log()ging infrastructure and how it's used, as reindented and rebased onto master by @ediosyncratic.