Exemplo n.º 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");
        }
Exemplo n.º 2
0
 public void SetNextLogger(AbstractLogger nextLogger)
 {
     this.nextLogger = nextLogger;
 }