public static void WriteErrorLogMessage(string sendingType, string message, Exception e = null) { if (SandoLogManager.DefaultLoggingOn) { if (e != null) { FileLogger.DefaultLogger.Error(sendingType + ": " + ExceptionFormatter.CreateMessage(e, message)); } else { FileLogger.DefaultLogger.Error(sendingType + ": " + message); } } }