static void createLogger() { log = new Logger.Logger(); Logger.ConsoleOutputter cons = new ConsoleOutputter(); Logger.FileOutputter file = new FileOutputter(); log.SetLoggerLevel(Level.DEBUG); log.SetLoggerOutput(cons); log.SetLoggerOutput(file); }
static void createLogger() { log = new Logger.Logger(); Logger.ConsoleOutputter cons = new ConsoleOutputter(); Logger.FileOutputter file = new FileOutputter(); SocketOutputter sockLogger = new SocketOutputter("localhost", 1800); log.SetLoggerOutput(sockLogger); log.SetLoggerLevel(Level.FATAL); log.SetLoggerOutput(cons); log.SetLoggerOutput(file); }
static void Main() { FileOutputter file = new FileOutputter(); log = new Logger.Logger(); log.SetLoggerLevel(Level.DEBUG); log.SetLoggerOutput(file); tcpListener.Start(); //listenerForLogger.Start(); Thread threadForServer = new Thread(RunServer); threadForServer.Start(); s = new Server(); s.ShowDialog(); }
public void TestInit() { output = new FileOutputter(); }