Fixed logging initialization for OS X