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

For unified code between Linux/OSX.

Please note - I've only tested it works under the above two OS's - windows should work, but needs verifying.