Adding logs clearing functionality

Test Plan:
- See test plan for live-editor diff, where this is used