コード例 #1
0
ファイル: MyPatternConverter.cs プロジェクト: HuGuo/TSS
 protected override void Convert(System.IO.TextWriter writer , log4net.Core.LoggingEvent loggingEvent)
 {
     if (null != Option) {
         WriteObject(writer , loggingEvent.Repository , LookupProperty(Option , loggingEvent));
     } else {
         WriteDictionary(writer , loggingEvent.Repository , loggingEvent.GetProperties());
     }
 }
コード例 #2
0
 protected override void Convert(System.IO.TextWriter writer, log4net.Core.LoggingEvent loggingEvent)
 {
     if (Option != null)
     {
         // Write the value for the specified key
         WriteObject(writer, loggingEvent.Repository, LookupProperty(Option, loggingEvent));
     }
     else
     {
         // Write all the key value pairs
         WriteDictionary(writer, loggingEvent.Repository, loggingEvent.GetProperties());
     }
 }