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(); }
public void setNextLogger(AbstractLogger nextLogger) { _nextLogger = nextLogger; }