コード例 #1
0
ファイル: Program.cs プロジェクト: kgiff14/DesignPatterns
        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");
        }
コード例 #2
0
 public void SetNextLogger(AbstractLogger nextLogger)
 {
     this.nextLogger = nextLogger;
 }