コード例 #1
0
 public static TextConsoleLogger getInstance()
 {
     if (instance == null)
     {
         instance = new TextConsoleLogger();
     }
     return(instance);
 }
コード例 #2
0
        public override Logger FactoryMethod()
        {
            Logger logger = new CombinedToLoggerAdapter(TextConsoleLogger.getInstance());

            return(logger);
        }
コード例 #3
0
 public CombinedToLoggerAdapter(TextConsoleLogger text)
 {
     textConsoleLogger = text;
 }