Example #1
0
        static void Main(string[] args)
        {
            AbstractLogger loggerchain = getChainOfLoggers();

            loggerchain.LogMessage((int)AbstractLogger.Level.INFO, "This is an information");
            loggerchain.LogMessage((int)AbstractLogger.Level.DEBUG, "This is a debug level information");
            loggerchain.LogMessage((int)AbstractLogger.Level.ERROR, "This is an error information");
        }
Example #2
0
 public void SetNextLogger(AbstractLogger nextLogger)
 {
     this.nextLogger = nextLogger;
 }