コード例 #1
0
ファイル: Log4netLogger.cs プロジェクト: csuffyy/Prxm.Cqrs
 private static void FillInLoggingEventWithExtendedProperties(ExtendedLogInfo info, LoggingEvent loggingEvent)
 {
     // todo: add caching or fast reflection to improve performances a bit
     foreach (var pi in info.GetType().GetProperties())
     {
         loggingEvent.Properties[pi.Name] = pi.GetValue(info, null);
     }
 }
コード例 #2
0
ファイル: Log4netLogger.cs プロジェクト: AGiorgetti/Prxm.Cqrs
		public void Info(string message, Exception exception, ExtendedLogInfo info)
		{
			if (IsInfoEnabled)
			{
				LoggingEvent loggingEvent = new LoggingEvent(Logger.Logger.GetType(), Logger.Logger.Repository, Logger.Logger.Name, Level.Info, message, exception);
				FillInLoggingEventWithExtendedProperties(info, loggingEvent);
				Logger.Logger.Log(loggingEvent);
			}
		}
コード例 #3
0
ファイル: Log4netLogger.cs プロジェクト: csuffyy/Prxm.Cqrs
 public void Info(string message, Exception exception, ExtendedLogInfo info)
 {
     if (IsInfoEnabled)
     {
         LoggingEvent loggingEvent = new LoggingEvent(Logger.Logger.GetType(), Logger.Logger.Repository, Logger.Logger.Name, Level.Info, message, exception);
         FillInLoggingEventWithExtendedProperties(info, loggingEvent);
         Logger.Logger.Log(loggingEvent);
     }
 }
コード例 #4
0
		public void Warn(string message, Exception exception, ExtendedLogInfo info)
		{
			
		}
コード例 #5
0
ファイル: Log4netLogger.cs プロジェクト: AGiorgetti/Prxm.Cqrs
		private static void FillInLoggingEventWithExtendedProperties(ExtendedLogInfo info, LoggingEvent loggingEvent)
		{
			// todo: add caching or fast reflection to improve performances a bit
			foreach (var pi in info.GetType().GetProperties())
			{
				loggingEvent.Properties[pi.Name] = pi.GetValue(info, null);
			}
		}
コード例 #6
0
ファイル: NullDebugLogger.cs プロジェクト: csuffyy/Prxm.Cqrs
 public void Debug(string message, Exception exception, ExtendedLogInfo info)
 {
 }
コード例 #7
0
ファイル: NullDebugLogger.cs プロジェクト: csuffyy/Prxm.Cqrs
 public void Fatal(string message, Exception exception, ExtendedLogInfo info)
 {
 }
コード例 #8
0
ファイル: NullDebugLogger.cs プロジェクト: csuffyy/Prxm.Cqrs
 public void Error(string message, Exception exception, ExtendedLogInfo info)
 {
 }