Change logging "name" to be class instance thread specific ptr for unified code between Linux/OSX.
Fix formatting issue.