예제 #1
0
        public static void Start()
        {
            AbstractLogger loggerChain = GetChainOfLoggers();

            loggerChain.LogMessage(AbstractLogger.INFO,
                                   "This is an information.");

            loggerChain.LogMessage(AbstractLogger.DEBUG,
                                   "This is an debug level information.");

            loggerChain.LogMessage(AbstractLogger.ERROR,
                                   "This is an error information.");
        }
예제 #2
0
 public void SetNextLogger(AbstractLogger nextLogger)
 {
     this.nextLogger = nextLogger;
 }