public void createTestLogFile(string message) { try { bool EnableTestLog = Convert.ToBoolean(ConfigurationManager.AppSettings["EnableTestLog"].ToString()); if (EnableTestLog) { CreateLogFiles testLog = new CreateLogFiles(); string s = AppDomain.CurrentDomain.BaseDirectory.ToString() + "Log"; if (!Directory.Exists(s)) { Directory.CreateDirectory(s); } s += "/TestData_" + DateTime.Now.ToString("ddMMyyyy"); testLog.SaveTestLog(s, message); } } catch (Exception ex) { } }
public void createLogFile() { try { CreateLogFiles Err = new CreateLogFiles(); string s = AppDomain.CurrentDomain.BaseDirectory.ToString() + "Log"; if (!Directory.Exists(s)) { Directory.CreateDirectory(s); } s += "/BrokenConnection_"; Err.ErrorLog(s, "CALL SERVER CONNECTION BROKEN....."); Err.ErrorLog(s, "OMS APPLICATION RESTARTED...."); } catch (Exception ex) { } }