コード例 #1
0
 public static void RemoveLogString(string name)
 {
     if (SAFLOGGERInMEMORY.m_LogsTable.ContainsKey(name))
     {
         SAFLOGGERInMEMORY i = (SAFLOGGERInMEMORY)SAFLOGGERInMEMORY.m_LogsTable[name];
         i.Clear();
         SAFLOGGERInMEMORY.m_LogsTable.Remove(name);
     }
 }
コード例 #2
0
        public static SAFLOGGERInMEMORY GetLogString(string name, bool readExistingFile, int baseCapacity)
        {
            SAFLOGGERInMEMORY result;

            if (SAFLOGGERInMEMORY.m_LogsTable.ContainsKey(name))
            {
                result = (SAFLOGGERInMEMORY)SAFLOGGERInMEMORY.m_LogsTable[name];
            }
            else
            {
                SAFLOGGERInMEMORY rv = new SAFLOGGERInMEMORY(name, readExistingFile);
                if (baseCapacity > 0)
                {
                    SAFLOGGERInMEMORY.m_strBuilder = new StringBuilder((baseCapacity > 1024) ? baseCapacity : 1024);
                }
                SAFLOGGERInMEMORY.m_LogsTable.Add(name, rv);
                result = rv;
            }
            return(result);
        }
コード例 #3
0
		public static SAFLOGGERInMEMORY GetLogString(string name, bool readExistingFile, int baseCapacity)
		{
			SAFLOGGERInMEMORY result;
			if (SAFLOGGERInMEMORY.m_LogsTable.ContainsKey(name))
			{
				result = (SAFLOGGERInMEMORY)SAFLOGGERInMEMORY.m_LogsTable[name];
			}
			else
			{
				SAFLOGGERInMEMORY rv = new SAFLOGGERInMEMORY(name, readExistingFile);
				if (baseCapacity > 0)
				{
					SAFLOGGERInMEMORY.m_strBuilder = new StringBuilder((baseCapacity > 1024) ? baseCapacity : 1024);
				}
				SAFLOGGERInMEMORY.m_LogsTable.Add(name, rv);
				result = rv;
			}
			return result;
		}
コード例 #4
0
 public static SAFLOGGERInMEMORY GetLogString(string name, bool readExistingFile)
 {
     return(SAFLOGGERInMEMORY.GetLogString(name, readExistingFile, -1));
 }