예제 #1
0
        private static AbstractLogger GetLoggerChain()
        {
            AbstractLogger errorLogger   = new ErrorLogger(AbstractLogger.ERROR);
            AbstractLogger remoteLogger  = new RemoteLogger(AbstractLogger.REMOTE);
            AbstractLogger consoleLogger = new ConsoleLogger(AbstractLogger.CONSOLE);

            errorLogger.setNextLogger(remoteLogger);
            remoteLogger.setNextLogger(consoleLogger);
            return(errorLogger);
        }