/// <summary>
        /// Removes log file object from list. Does not delete the file
        /// </summary>
        /// <param name="logFile"></param>
        /// <returns></returns>
        public static bool ReturnLoggerFileObjectToPool(LoggerFile logFile)
        {
            if (!_loggerFileList.Contains(logFile))
                return false;

            _loggerFileList.Remove(logFile);
            return true;
        }
        /// <summary>
        /// Removes log file object from list. Does not delete the file
        /// </summary>
        /// <param name="logFile"></param>
        /// <returns></returns>
        public static bool ReturnLoggerFileObjectToPool(LoggerFile logFile)
        {
            if (!_loggerFileList.Contains(logFile))
            {
                return(false);
            }

            _loggerFileList.Remove(logFile);
            return(true);
        }
 /// <summary>
 /// Create a new LoggerFile object
 /// </summary>
 /// <param name="filePath"></param>
 /// <returns></returns>
 public static LoggerFile GetLoggerFile(string filePath, bool dataLogging)
 {
     try
     {
         LoggerFile loggerFileObject = new LoggerFile(filePath, dataLogging);
         _loggerFileList.Add(loggerFileObject);
         return(loggerFileObject);
     }
     catch (Exception e)
     {
         throw new LoggingException(e);
     }
 }
 /// <summary>
 /// Create a new LoggerFile object
 /// </summary>
 /// <param name="filePath"></param>
 /// <returns></returns>
 public static LoggerFile GetLoggerFile(string filePath, bool dataLogging)
 {
     try
     {
         LoggerFile loggerFileObject = new LoggerFile(filePath, dataLogging);
         _loggerFileList.Add(loggerFileObject);
         return loggerFileObject;
     }
     catch (Exception e)
     {
         throw new LoggingException(e);
     }
 }
 public virtual void close()
 {
     if (m_WriteFile != null)
     {
         m_WriteFile.Close();
         m_WriteFile = null;
     }
 }
 public CSVFileWriter(string path)
 {
     //m_WriteFile = new StreamWriter(path);
     m_WriteFile = LoggerFileFactory.GetLoggerFile(path, true);
 }