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

            hierarchy.Root.AddAppender(appender);
        }
Example #2
0
 private void LogForm_Load(object sender, EventArgs e)
 {
     TextBoxAppender.ConfigureTextBoxAppender(logTextBox);
 }