Add SetRecoverLoggingFailure function