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

            return(logger);
        }
Example #3
0
 public CombinedToLoggerAdapter(TextConsoleLogger text)
 {
     textConsoleLogger = text;
 }