private void LogMessage(LogPrefix prefix, string message, params object[] args) { string msg = string.Format(message, args); try { File.WriteAllText(this.filename, string.Format("{0}: {1}\n", prefix.ToString(), msg)); } catch (IOException ex) { System.Console.Error.WriteLine("Exception caught while loggin message: {0}", ex.Message); } }
private void LogMessage(LogPrefix prefix, string message) { WriteToFile(string.Format("{0}: {1}\n", prefix.ToString(), message)); }
private void LogMessage(LogPrefix prefix, string message, params object[] args) { string msg = string.Format(message, args); WriteToFile(string.Format("{0}: {1}\n", prefix.ToString(), msg)); }
private void LogMessage(LogPrefix prefix, string message) { File.WriteAllText(this.filename, string.Format("{0}: {1}\n", prefix.ToString(), message)); }