static void Main(string[] args) { AbstractLogger logger = GetChainOfLoggers(); logger.LogMessage(AbstractLogger.LOG_LEVEL_INFO, "Info Log"); logger.LogMessage(AbstractLogger.LOG_LEVEL_DEBUG, "Debug Log"); logger.LogMessage(AbstractLogger.LOG_LEVEL_ERROR, "Error Log"); }
static void Main(string[] args) { AbstractLogger logger = AbstractLogger.Logger; logger.LogMessage(AbstractLogger.INFO, "This is an information."); logger.LogMessage(AbstractLogger.DEBUG, "This is an debug level information."); logger.LogMessage(AbstractLogger.ERROR, "This is an error information."); }
public void SetNextLogger(AbstractLogger nextLogger) { NextLogger = nextLogger; }