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); } }
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); }
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; }
public static SAFLOGGERInMEMORY GetLogString(string name, bool readExistingFile) { return(SAFLOGGERInMEMORY.GetLogString(name, readExistingFile, -1)); }