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

            loggerChain.LogMessage(AbstractLogger.INFO, "This is an information.");
            loggerChain.LogMessage(AbstractLogger.FILE, "This is an file level information.");
            loggerChain.LogMessage(AbstractLogger.ERROR, "This is an error information.");
        }
Ejemplo n.º 2
0
 public void SetNextLogger(AbstractLogger nextLogger)
 {
     this.nextLogger = nextLogger;
 }