public void SetUp() { lmi = new LogMessageInfo("Info"); lmd = new LogMessageDebug("Debug"); lme = new LogMessageError("Error"); lmw = new LogMessageWarning("Warning"); lm = new LogMessage("Empty"); }
/// <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); }