123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- #region Apache License
- #endregion
- using System;
- using System.IO;
- using log4net;
- using log4net.Core;
- namespace log4net.Layout
- {
-
-
-
-
-
-
-
-
-
-
-
- public class Layout2RawLayoutAdapter : IRawLayout
- {
- #region Member Variables
-
-
-
- private ILayout m_layout;
- #endregion
- #region Constructors
-
-
-
-
-
-
-
-
-
- public Layout2RawLayoutAdapter(ILayout layout)
- {
- m_layout = layout;
- }
- #endregion
- #region Implementation of IRawLayout
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- virtual public object Format(LoggingEvent loggingEvent)
- {
- StringWriter writer = new StringWriter(System.Globalization.CultureInfo.InvariantCulture);
- m_layout.Format(writer, loggingEvent);
- return writer.ToString();
- }
- #endregion
- }
- }
|