Proper error logging for emergency mode file logs