示例#1
0
 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);
 }
示例#2
0
        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);
        }
示例#3
0
        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();
        }
示例#4
0
 public void TestInit()
 {
     output = new FileOutputter();
 }