public void Write(ILoggerMessage message) { using (StreamWriter sw = new StreamWriter(_file, true, Encoding.Default)) { sw.WriteLine(message.ToString()); } }
public void Write(ILoggerMessage message) { //thread safe lock (lockobject) { using StreamWriter sw = File.AppendText(_file); sw.WriteLine(message.ToString()); } }
public void Write(ILoggerMessage message) { Console.WriteLine(message.ToString()); }
public void Write(ILoggerMessage message) { File.AppendAllText(FileName, message.ToString() + "\r\n"); }