Esempio n. 1
0
 public static TextConsoleLogger getInstance()
 {
     if (instance == null)
     {
         instance = new TextConsoleLogger();
     }
     return(instance);
 }
Esempio n. 2
0
        public override Logger FactoryMethod()
        {
            Logger logger = new CombinedToLoggerAdapter(TextConsoleLogger.getInstance());

            return(logger);
        }
Esempio n. 3
0
 public CombinedToLoggerAdapter(TextConsoleLogger text)
 {
     textConsoleLogger = text;
 }