protected override void Convert(System.IO.TextWriter writer, Core.LoggingData loggingEvent)
 {
     if (!string.IsNullOrEmpty(loggingEvent.ExStringThree))
     {
         writer.Write(loggingEvent.ExStringThree);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Performs threshold checks and invokes filters before
 /// delegating actual logging to the subclasses specific
 /// <see cref="M:Append(LoggingEvent)"/> method.
 /// </summary>
 /// <param name="loggingEvent">The event to log.</param>
 /// <remarks>
 /// <para>
 /// This method cannot be overridden by derived classes. A
 /// derived class should override the <see cref="M:Append(LoggingEvent)"/> method
 /// which is called by this method.
 /// </para>
 /// <para>
 /// The implementation of this method is as follows:
 /// </para>
 /// <para>
 /// <list type="bullet">
 ///		<item>
 ///			<description>
 ///			Checks that the severity of the <paramref name="loggingEvent"/>
 ///			is greater than or equal to the <see cref="Threshold"/> of this
 ///			appender.</description>
 ///		</item>
 ///		<item>
 ///			<description>
 ///			Checks that the <see cref="IFilter"/> chain accepts the
 ///			<paramref name="loggingEvent"/>.
 ///			</description>
 ///		</item>
 ///		<item>
 ///			<description>
 ///			Calls <see cref="M:PreAppendCheck()"/> and checks that
 ///			it returns <c>true</c>.</description>
 ///		</item>
 /// </list>
 /// </para>
 /// <para>
 /// If all of the above steps succeed then the <paramref name="loggingEvent"/>
 /// will be passed to the abstract <see cref="M:Append(LoggingEvent)"/> method.
 /// </para>
 /// </remarks>
 public void DoAppend(Core.LoggingData loggingEvent)
 {
     if (FilterEvent(loggingEvent) && PreAppendCheck())
     {
         Append(loggingEvent);
     }
 }
Esempio n. 3
0
 protected override void Convert(System.IO.TextWriter writer, Core.LoggingData loggingEvent)
 {
     writer.Write(loggingEvent.AppNo);
 }
 protected override void Convert(System.IO.TextWriter writer, Core.LoggingData loggingEvent)
 {
     writer.Write(loggingEvent.ExIntThree.ToString());
 }
Esempio n. 5
0
 /// <summary>
 /// Log the logging event in Appender specific way.
 /// </summary>
 /// <param name="loggingEvent">The event to log</param>
 /// <remarks>
 /// <para>
 /// This method is called to log a message into this appender.
 /// </para>
 /// </remarks>
 public virtual void DoAppend(Core.LoggingData loggingEvent)
 {
     DoAppend(new LoggingData[] { loggingEvent });
 }