예제 #1
0
 public void Write(string msg)
 {
     try
     {
         log.Write(msg);
     }
     catch (Exception)
     {
         log = new DBLog();
         log.Write(msg);
     }
 }
예제 #2
0
 public StrategyContext(AbstractLog log)
 {
     this.log = log;
 }
예제 #3
0
 public StrategyContext()
 {
     log = new FileLog();
 }