Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilLord666 committed Jul 20, 2017
1 parent 8908912 commit f6e56a2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Net.Sockets;
using System.Windows.Forms;
using log4net;
using log4net.Appender;
using log4net.Config;
using log4net.Core;
using log4net.Repository.Hierarchy;
Expand Down Expand Up @@ -63,7 +62,7 @@ private void FillControls()
XmlConfigurator.Configure();
_logger = LogManager.GetLogger(typeof(MainForm));
_richTextBoxAppender = new RichTextBoxAppender(_logsTextBox);
((log4net.Repository.Hierarchy.Logger)_logger.Logger).AddAppender(_richTextBoxAppender);
((Logger)_logger.Logger).AddAppender(_richTextBoxAppender);
foreach (KeyValuePair<Level, String> level in _logLevels)
_logLevelComboBox.Items.Add(level.Value);
_logLevelComboBox.SelectedIndex = 5;
Expand Down

0 comments on commit f6e56a2

Please sign in to comment.