static public void SetDefaultLogFilePath() { try { LogFilePath = Environment.CurrentDirectory + "/TMSLogger.txt"; thisFileDir = Environment.CurrentDirectory; } catch (Exception e) { TMSLogger.NewLog(" | " + "AdminClasses.cs" + " | " + "TMSLogger" + " | " + "SetDefaultLogFilePath" + " | " + e.GetType().ToString() + " | " + e.Message + " | "); // error finding/starting logger file. } }
// METHOD HEADER COMMENT ------------------------------------------------------------------------------- /** * \fn static public void LogIt(string newLogString) * \brief This creates a new log object * \details This creates a new log object, adds it to the local list, then appends it to the * external file * \param[in] string newLogString This is the unparsed BSV string to create the file. * \see TMSLog(), logs.Add(), AppendLogFile() * \return void * * ---------------------------------------------------------------------------------------------------- */ static public void LogIt(string newLogString) { TMSLog myLog = new TMSLog(newLogString); logs.Add(myLog); if (AppendLogFile(myLog) == false) { /// Error writing to Log File: Try once again AppendLogFile(myLog); } ; try { LogStatusEvent(myLog); } catch (Exception e) { TMSLogger.NewLog(" | " + "AdminClasses.cs" + " | " + "TMSLogger" + " | " + "LogIt" + " | " + e.GetType().ToString() + " | " + e.Message + " | "); //megan look here } }