123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- #region Apache License
- #endregion
- using System;
- using System.IO;
- using System.Text;
- using log4net.Util;
- using log4net.Core;
- namespace log4net.Layout
- {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- public class SimpleLayout : LayoutSkeleton
- {
- #region Constructors
-
-
-
- public SimpleLayout()
- {
- IgnoresException = true;
- }
- #endregion
-
- #region Implementation of IOptionHandler
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- override public void ActivateOptions()
- {
-
- }
- #endregion
- #region Override implementation of LayoutSkeleton
-
-
-
-
-
-
-
-
-
-
-
-
- override public void Format(TextWriter writer, LoggingEvent loggingEvent)
- {
- if (loggingEvent == null)
- {
- throw new ArgumentNullException("loggingEvent");
- }
- writer.Write(loggingEvent.Level.DisplayName);
- writer.Write(" - ");
- loggingEvent.WriteRenderedMessage(writer);
- writer.WriteLine();
- }
- #endregion
- }
- }
|