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