Esempio n. 1
0
 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()));
 }
Esempio n. 2
0
 public override void Logger(string applicationName, 
     string sMessage,
     eLogEntryType currentType)
 {
     LogManager.LogError(string.Concat(applicationName.ToString(), ": ",
                                       GetUserMessage(sMessage)),
                                       " ExceptionType: ",
                                       currentType.ToString());
 }
Esempio n. 3
0
 public abstract void Logger(string applicationName, string sMessage, Exception ex, eLogEntryType currentType, Dictionary<string, object> currentParams);
Esempio n. 4
0
 public override void Logger(string applicationName, 
     Exception ex,
     eLogEntryType currentType)
 {
     LogManager.LogError(string.Concat(applicationName.ToString(), ": ",
                                       GetExceptionMessage(ex), " ExceptionType: ",
                                       currentType.ToString()));
 }
Esempio n. 5
0
 public abstract void Logger(string applicationName, string sMessage, Exception ex, eLogEntryType currentType);
Esempio n. 6
0
 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;
     }
 }
Esempio n. 7
0
 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));
 }
Esempio n. 8
0
 public override void Logger(string applicationName,
     Exception ex,
     eLogEntryType currentType)
 {
     EventLog.WriteEntry(applicationName.ToString(),
                                                                    GetExceptionMessage(ex),
                                                                    MapperLogEntryType(currentType));
 }
Esempio n. 9
0
 public override void Logger(string applicationName, 
     string sMessage,
     eLogEntryType currentType)
 {
     EventLog.WriteEntry(applicationName.ToString(),
                                                                    GetUserMessage(sMessage),
                                                                    MapperLogEntryType(currentType));
 }