logger fix for Mac