internal static ConsoleAppender BuildConsoleLog(LogOptions options)
 {
     var layout = new PatternLayout
         {
             ConversionPattern = options.Pattern
         };
     layout.ActivateOptions();
     var appender = new ConsoleAppender
         {
             Layout = layout
         };
     appender.ActivateOptions();
     return appender;
 }
        internal static ConsoleAppender BuildConsoleLog(LogOptions options)
        {
            var layout = new PatternLayout
            {
                ConversionPattern = options.Pattern
            };

            layout.ActivateOptions();
            var appender = new ConsoleAppender
            {
                Layout = layout
            };

            appender.ActivateOptions();
            return(appender);
        }
        internal static ColoredConsoleAppender BuildColoredConsoleLog(LogOptions options)
        {
            var layout = new PatternLayout
            {
                ConversionPattern = options.Pattern
            };
            layout.ActivateOptions();
            var appender = new ColoredConsoleAppender
            {
                Layout = layout
            };

            Map(appender, Colors.Red | Colors.HighIntensity, Level.Alert, Level.Critical, Level.Emergency, Level.Error, Level.Fatal, Level.Severe);
            Map(appender, Colors.Cyan | Colors.HighIntensity, Level.Info, Level.Notice);
            Map(appender, Colors.Yellow | Colors.HighIntensity, Level.Warn);

            appender.ActivateOptions();
            return appender;
        }
        internal static ColoredConsoleAppender BuildColoredConsoleLog(LogOptions options)
        {
            var layout = new PatternLayout
            {
                ConversionPattern = options.Pattern
            };

            layout.ActivateOptions();
            var appender = new ColoredConsoleAppender
            {
                Layout = layout
            };

            Map(appender, Colors.Red | Colors.HighIntensity, Level.Alert, Level.Critical, Level.Emergency, Level.Error, Level.Fatal, Level.Severe);
            Map(appender, Colors.Cyan | Colors.HighIntensity, Level.Info, Level.Notice);
            Map(appender, Colors.Yellow | Colors.HighIntensity, Level.Warn);

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