public override void Initialize() { var tabPage = new TabPage(); tabPage.Name = "LogViewTabPage"; tabPage.Text = "LogView"; var textbox = new TextBox(); textbox.Dock = System.Windows.Forms.DockStyle.Fill; textbox.Multiline = true; textbox.Name = "LogViewTextBox"; textbox.ReadOnly = true; textbox.ScrollBars = ScrollBars.Both; tabPage.Controls.Add(textbox); Main.Instance.m_TabController.m_TabPages.Add("LogViewTabPage", tabPage); Main.Instance.m_TabController.ShowTab("LogViewTabPage", 1, false); Hierarchy h = (Hierarchy)LogManager.GetRepository(); h.Root.Level = Level.All; IAppender appender = new LogAppender(textbox); h.Root.AddAppender(appender); LogManager.GetRepository().Threshold = Level.Info; }