Add this function to it: /// <summary> /// Clear the logged text. /// </summary> static public void Clear () { mLines.Clear(); }