예제 #1
0
 public void SetUp()
 {
     lmi = new LogMessageInfo("Info");
     lmd = new LogMessageDebug("Debug");
     lme = new LogMessageError("Error");
     lmw = new LogMessageWarning("Warning");
     lm = new LogMessage("Empty");
 }
예제 #2
0
 /// <summary>
 /// Logs all the error messages
 /// Should be used for error purpose only
 /// </summary>
 /// <param name="message"> the message to log</param>
 public void Error(string message)
 {
     LogMessage log = new LogMessageError(message);
     this.WriteLine(log);
 }