Exemple #1
0
        public static void ConfigureTextBoxAppender(RichTextBox textBox)
        {
            var hierarchy = (Hierarchy)LogManager.GetRepository();
            var appender  = new TextBoxAppender(textBox);

            hierarchy.Root.AddAppender(appender);
        }
Exemple #2
0
 private void BatchLogForm_Load(object sender, EventArgs e)
 {
     TextBoxAppender.ConfigureTextBoxAppender(richTextBoxLog);
 }