private void WriteLogToFile(String msg)
{
try
{
using (StreamWriter w = File.AppendText(AppDomain.CurrentDomain.BaseDirectory + "/ChatterRestService.txt"))
{
// write a line of text to the file
w.WriteLine(DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss:ffff"));
w.WriteLine("\t" + msg);
// close the stream
w.Close();
}
}
catch (Exception ex) { throw ex; }
}