OGM-578 Reduce object creation during log.trace/debug/info

The invocation of _toString_ would otherwise happen even if trace is disabled.