Beispiel #1
0
        public void AddAppender(params string[] args)
        {
            string typeAppender = args[0];
            string typeLayout   = args[1];

            ILayout currentLayout = layoutFactory.GenerateLayout(typeLayout);

            ReportLevel level = ReportLevel.INFO;

            if (args.Length == 3)
            {
                Enum.TryParse(args[2], true, out ReportLevel lvl);

                level = lvl;
            }

            IAppender appender = appenderFactory.GenerateFactory(typeAppender, currentLayout, level);

            appenders.Add(appender);
        }