Logger moved to prefs so that class not found error can be handled in main