// STUPID HACK ALERT!!!! STUPID HACK ALERT!!!!! // constype - the type of console to use (see enum ConsoleType) // sparam - depending on the console type: // TCP - the IP to bind to (127.0.0.1 if blank) // Local - param ignored // and for the iparam: // TCP - the port to bind to // Local - param ignored // LogFile - duh // componentname - which component of the OGS system? (user, asset etc) // cmdparser - a reference to a conscmd_callback object public ConsoleBase(string LogFile, string componentname, conscmd_callback cmdparser, bool disableSystemConsole ) { this.componentname = componentname; this.cmdparser = cmdparser; this.disableOutput = disableSystemConsole; System.Console.WriteLine("ServerConsole.cs - creating new local console"); System.Console.WriteLine("Logs will be saved to current directory in " + LogFile); Log = File.AppendText(LogFile); Log.WriteLine("========================================================================"); Log.WriteLine(componentname + " Started at " + DateTime.Now.ToString()); }
// STUPID HACK ALERT!!!! STUPID HACK ALERT!!!!! // constype - the type of console to use (see enum ConsoleType) // sparam - depending on the console type: // TCP - the IP to bind to (127.0.0.1 if blank) // Local - param ignored // and for the iparam: // TCP - the port to bind to // Local - param ignored // LogFile - duh // componentname - which component of the OGS system? (user, asset etc) // cmdparser - a reference to a conscmd_callback object public ConsoleBase(string LogFile, string componentname, conscmd_callback cmdparser, bool disableSystemConsole) { this.componentname = componentname; this.cmdparser = cmdparser; this.disableOutput = disableSystemConsole; System.Console.WriteLine("ServerConsole.cs - creating new local console"); System.Console.WriteLine("Logs will be saved to current directory in " + LogFile); Log = File.AppendText(LogFile); Log.WriteLine("========================================================================"); Log.WriteLine(componentname + " Started at " + DateTime.Now.ToString()); }