public static bool LogException(string strData) { bool blnReturnValue = false; string strPathFile; string strTextToLog; strPathFile = CustomLog.GetLogFile(); if (!string.IsNullOrEmpty(strPathFile)) { strTextToLog = string.Format("{0} {1}{2}", DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss.fff"), strData, Environment.NewLine); blnReturnValue = IOHelper.AppendToFile(strPathFile, strTextToLog); } return(blnReturnValue); }