public void ReInitializeLogfileMonitor()
 {
     _logfileMonitor            = new LogfileMonitor(_dataFolder + "\\" + _logfileName);
     _logfileMonitor.BeforeLog += new LogfileMonitor.LogEventHandler(_logfileMonitor_BeforeLog);
     _logfileMonitor.OverrideSize(0);
     _logfileMonitor.Start();
 }
        public ServerExtensions(string settingsFile)
        {
            Trace.WriteLine("Loading Server Extensions Settings...");
            LoadSettings(settingsFile);
            Trace.WriteLine("Done");
            //_ircBot = new IrcBot();
            //botTh = new Thread(new ThreadStart(_ircBot.Connect));
            //botTh.Start();

            // Initialize the Logfile Monitor
            // Step 1: Get the name of the logfile from the init.txt file
            //_logfileName = "haloserver.log";  // Add the code for that later

            // Step 2: Initialize and start the monitor.
            Trace.WriteLine("Initializing Logfile Monitor Object");
            _logfileMonitor            = new LogfileMonitor(_dataFolder + "\\" + _logfileName);
            _logfileMonitor.BeforeLog += new LogfileMonitor.LogEventHandler(_logfileMonitor_BeforeLog);

            // Initialize banlist object
            banlist = new Banlist(_dataFolder + "\\" + _banlistFileName);

            //StartServices();
            //listener = new Listener()

            Trace.WriteLine("Done");
        }