ChatterService.Web.ChatterProxyService.WriteLogToFile C# (CSharp) Method

WriteLogToFile() private method

private WriteLogToFile ( String msg ) : void
msg String
return void
        private void WriteLogToFile(String msg)
        {
            try
            {

                using (StreamWriter w = File.AppendText(AppDomain.CurrentDomain.BaseDirectory + "/ChatterProxyService.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; }
        }