logging initialization fix for Mac OS X

Suggested by @kacfengine