Beispiel #1
0
 public static void RemoveLogString(string name)
 {
     if (InMemoryLogging.m_LogsTable.ContainsKey(name))
     {
         InMemoryLogging inMemoryLogging = (InMemoryLogging)InMemoryLogging.m_LogsTable[name];
         inMemoryLogging.Clear();
         InMemoryLogging.m_LogsTable.Remove(name);
     }
 }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="name"></param>
 public static void RemoveLogString(string name)
 {
     if (m_LogsTable.ContainsKey(name))
     {
         InMemoryLogging l = (InMemoryLogging)m_LogsTable[name];
         l.Clear();
         m_LogsTable.Remove(name);
     }
 }
Beispiel #3
0
        public static InMemoryLogging GetLogString(string name, bool readExistingFile)
        {
            if (InMemoryLogging.m_LogsTable.ContainsKey(name))
            {
                return((InMemoryLogging)InMemoryLogging.m_LogsTable[name]);
            }
            InMemoryLogging inMemoryLogging = new InMemoryLogging(name, readExistingFile);

            InMemoryLogging.m_LogsTable.Add(name, inMemoryLogging);
            return(inMemoryLogging);
        }
Beispiel #4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="name"></param>
        /// <param name="readExistingFile"></param>
        /// <returns></returns>
        public static InMemoryLogging GetLogString(string name, bool readExistingFile, int baseCapacity)
        {
            if (m_LogsTable.ContainsKey(name))
            {
                return((InMemoryLogging)m_LogsTable[name]);
            }
            InMemoryLogging rv = new InMemoryLogging(name, readExistingFile);

            if (baseCapacity > 0)
            {
                m_strBuilder = new StringBuilder(baseCapacity > 1024 ? baseCapacity : 1024);
            }
            m_LogsTable.Add(name, rv);
            return(rv);
        }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="name"></param>
 /// <param name="readExistingFile"></param>
 /// <returns></returns>
 public static InMemoryLogging GetLogString(string name, bool readExistingFile, int baseCapacity)
 {
     if (m_LogsTable.ContainsKey(name))
     {
         return (InMemoryLogging)m_LogsTable[name];
     }
     InMemoryLogging rv = new InMemoryLogging(name, readExistingFile);
     if (baseCapacity > 0)
     {
         m_strBuilder = new StringBuilder(baseCapacity > 1024 ? baseCapacity : 1024);
     }
     m_LogsTable.Add(name, rv);
     return rv;
 }
		public static InMemoryLogging GetLogString(string name, bool readExistingFile)
		{
			if (InMemoryLogging.m_LogsTable.ContainsKey(name))
			{
				return (InMemoryLogging)InMemoryLogging.m_LogsTable[name];
			}
			InMemoryLogging inMemoryLogging = new InMemoryLogging(name, readExistingFile);
			InMemoryLogging.m_LogsTable.Add(name, inMemoryLogging);
			return inMemoryLogging;
		}