Exemplo n.º 1
0
        static void Main(string[] args)
        {
            AbstractLogger logChain = getChainOfLoggers();

            logChain.logMessage(AbstractLogger.INFO, "Renaming a file for uber cool program.");

            logChain.logMessage(AbstractLogger.DEBUG, "Writing a message to the console to output current text");

            logChain.logMessage(AbstractLogger.ERROR, "ERROR, something broke!!");

            Console.Read();
        }
Exemplo n.º 2
0
 public void setNextLogger(AbstractLogger nextLogger)
 {
     _nextLogger = nextLogger;
 }