Change logging "name" to be class instance thread specific ptr for unified code between Linux/OSX.
Fix formatting issue.
Merge pull request #53 from danielhams/osxthreadlocal

Change logging "name" to be class instance thread specific ptr.