logger fix for linux