コード例 #1
0
ファイル: SqlLogger.cs プロジェクト: BoccaDamian/bubis
 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()));
 }
コード例 #2
0
ファイル: SqlLogger.cs プロジェクト: BoccaDamian/bubis
 public override void Logger(string applicationName, 
     string sMessage,
     eLogEntryType currentType)
 {
     LogManager.LogError(string.Concat(applicationName.ToString(), ": ",
                                       GetUserMessage(sMessage)),
                                       " ExceptionType: ",
                                       currentType.ToString());
 }
コード例 #3
0
ファイル: AbsLogger.cs プロジェクト: BoccaDamian/bubis
 public abstract void Logger(string applicationName, string sMessage, Exception ex, eLogEntryType currentType, Dictionary<string, object> currentParams);
コード例 #4
0
ファイル: SqlLogger.cs プロジェクト: BoccaDamian/bubis
 public override void Logger(string applicationName, 
     Exception ex,
     eLogEntryType currentType)
 {
     LogManager.LogError(string.Concat(applicationName.ToString(), ": ",
                                       GetExceptionMessage(ex), " ExceptionType: ",
                                       currentType.ToString()));
 }
コード例 #5
0
ファイル: AbsLogger.cs プロジェクト: BoccaDamian/bubis
 public abstract void Logger(string applicationName, string sMessage, Exception ex, eLogEntryType currentType);
コード例 #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;
     }
 }
コード例 #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));
 }
コード例 #8
0
 public override void Logger(string applicationName,
     Exception ex,
     eLogEntryType currentType)
 {
     EventLog.WriteEntry(applicationName.ToString(),
                                                                    GetExceptionMessage(ex),
                                                                    MapperLogEntryType(currentType));
 }
コード例 #9
0
 public override void Logger(string applicationName, 
     string sMessage,
     eLogEntryType currentType)
 {
     EventLog.WriteEntry(applicationName.ToString(),
                                                                    GetUserMessage(sMessage),
                                                                    MapperLogEntryType(currentType));
 }