public static void ConfigureTextBoxAppender(RichTextBox textBox) { var hierarchy = (Hierarchy)LogManager.GetRepository(); var appender = new TextBoxAppender(textBox); hierarchy.Root.AddAppender(appender); }
private void BatchLogForm_Load(object sender, EventArgs e) { TextBoxAppender.ConfigureTextBoxAppender(richTextBoxLog); }