Refactor LogBaseClass to have BuildLogMessage return a StringBuilder instead of using a class-level reference to a StringBuilder