var hierarchy = (Hierarchy) LogManager.GetRepository(); var logger = (Logger) hierarchy.GetLogger(loggerName); logger.Level = Level.Debug; logger.AddAppender(new TraceAppender {Layout = new SimpleLayout()}); hierarchy.Configured = true;
Post a Comment
No comments:
Post a Comment