Esempio n. 1
0
        static void Main(string[] args)
        {
            AbstractLogger loggerChain = GetChainOfLogger();

            loggerChain.LogMessage(AbstractLogger.INFO, "information");
            loggerChain.LogMessage(AbstractLogger.DEBUG, "debug information");
            loggerChain.LogMessage(AbstractLogger.ERROR, "error information");
        }
Esempio n. 2
0
 public void SetNextLogger(AbstractLogger inNextLogger)
 {
     this.nextLogger = inNextLogger;
 }