Example #1
0
 // Remove a named log
 public static void RemoveLogString(string name)
 {
     // If must exist
     if (m_LogsTable.ContainsKey(name))
     {
         LogString l = (LogString)m_LogsTable[name];
         l.Clear();                // remove file
         m_LogsTable.Remove(name); // remove from table
     }
 }
Example #2
0
        // Access to named LogString instances.
        //
        public static LogString GetLogString(string name)
        {
            // If it exists, return the existing log.
            if (m_LogsTable.ContainsKey(name))
            {
                return((LogString)m_LogsTable[name]);
            }
            // Create and return a new log.
            LogString rv = new LogString(name);

            m_LogsTable.Add(name, rv);    // add to table
            return(rv);
        }
Example #3
0
 // Access to named LogString instances.
 //
 public static LogString GetLogString(string name)
 {
     // If it exists, return the existing log.
        if (m_LogsTable.ContainsKey(name)) return (LogString)m_LogsTable[name];
        // Create and return a new log.
        LogString rv = new LogString(name);
        m_LogsTable.Add(name, rv); // add to table
        return rv;
 }