public override void Logger(string applicationName, string sMessage, Exception ex, eLogEntryType currentType, Dictionary<string, object> currentParams) { LogManager.LogError(string.Concat(applicationName.ToString(), ": ", GetUserAndExceptionMessage(currentParams,sMessage, ex), " ExceptionType: ", currentType.ToString())); }
public override void Logger(string applicationName, string sMessage, eLogEntryType currentType) { LogManager.LogError(string.Concat(applicationName.ToString(), ": ", GetUserMessage(sMessage)), " ExceptionType: ", currentType.ToString()); }
public abstract void Logger(string applicationName, string sMessage, Exception ex, eLogEntryType currentType, Dictionary<string, object> currentParams);
public override void Logger(string applicationName, Exception ex, eLogEntryType currentType) { LogManager.LogError(string.Concat(applicationName.ToString(), ": ", GetExceptionMessage(ex), " ExceptionType: ", currentType.ToString())); }
public abstract void Logger(string applicationName, string sMessage, Exception ex, eLogEntryType currentType);
private static EventLogEntryType MapperLogEntryType(eLogEntryType type) { switch (type) { case eLogEntryType.Error: return EventLogEntryType.Error; case eLogEntryType.FailureAudit: return EventLogEntryType.FailureAudit; case eLogEntryType.Information: return EventLogEntryType.Information; case eLogEntryType.SuccessAudit: return EventLogEntryType.SuccessAudit; case eLogEntryType.Warning: return EventLogEntryType.Warning; default: return EventLogEntryType.Error; } }
public override void Logger(string applicationName, string sMessage, Exception ex, eLogEntryType currentType, Dictionary<string, object> currentParams) { EventLog.WriteEntry(applicationName.ToString(), GetUserAndExceptionMessage(currentParams, sMessage, ex), MapperLogEntryType(currentType)); }
public override void Logger(string applicationName, Exception ex, eLogEntryType currentType) { EventLog.WriteEntry(applicationName.ToString(), GetExceptionMessage(ex), MapperLogEntryType(currentType)); }
public override void Logger(string applicationName, string sMessage, eLogEntryType currentType) { EventLog.WriteEntry(applicationName.ToString(), GetUserMessage(sMessage), MapperLogEntryType(currentType)); }