I just write a line in the log so I can block out a section of the log, like:
log(" START -------------->>>")
' a lot of log lines ....
log("END <<<---------------")
That makes it easy to scroll back up because it is highly visible. The "Start" "End" can be replaced with the sub names like "[IMPORTDATA]" etc.
If there are a lot of lines in the log, I copy and paste it into an editor like NotePad++ to search on it. (Right click on log and select "Copy all to clipboard").
If I have a lot of log statements that do detailed debugging, I may wrap the detailed logs with #IF statements so I can turn off the detailed logs at any time and still have the other general purpose logs displayed.
#If LogDetail
log(" START -------------->>>")
#END IF
' a lot of log lines ....
#IF LogDetail
log("END <<<---------------")
#END IF
Hope this helps.