This code-snippet will give a new experience how you see logs while debugging. This UI Page can be navigated by https://<instance_name>.service-now.com/log_watcher.do and will give an real time log capture which will help to make debugging easy for developers. You can also search with the keyword to find your desired log.
The below GIF is a short demo for reference.