private void clearAll()
 {
     mAllLogMessages.Clear();
     foreach (DebugMessageList list in mLogMessages.Values)
     {
         list.Clear();
     }
 }
    private void clear(LogType type)
    {
        DebugMessageList list = mLogMessages[type];

        foreach (DebugMessage message in list.Messages)
        {
            mAllLogMessages.RemoveMessage(message);
        }
        list.Clear();
    }