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()); } }
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()); } }