internal static TraceAppender BuildTraceLog(ListeningLogOptions options)
 {
     var layout = new PatternLayout
     {
         ConversionPattern = options.Pattern
     };
     layout.ActivateOptions();
     var appender = new TraceAppender
     {
         Layout = layout,
         ImmediateFlush = options.ImmediateFlush
     };
     appender.ActivateOptions();
     return appender;
 }
        internal static DebugAppender BuildDebugLog(ListeningLogOptions options)
        {
            var layout = new PatternLayout
            {
                ConversionPattern = options.Pattern
            };

            layout.ActivateOptions();
            var appender = new DebugAppender
            {
                Layout         = layout,
                ImmediateFlush = options.ImmediateFlush
            };

            appender.ActivateOptions();
            return(appender);
        }