Add ability to clear DebugLog listeners.
Tests: Add DebugLog tests.