static void Main(string[] args) { AbstractLogger loggerChain = GetChainOfLogger(); loggerChain.LogMessage(AbstractLogger.INFO, "information"); loggerChain.LogMessage(AbstractLogger.DEBUG, "debug information"); loggerChain.LogMessage(AbstractLogger.ERROR, "error information"); }
public void SetNextLogger(AbstractLogger inNextLogger) { this.nextLogger = inNextLogger; }