Found the issue.
If you change the var %trash line to the below it will find the right log files when you double click them.
var %trash " $+ $findfile($logdir,*.log,@LogViewer,aline -l @LogViewer $nopath($1-)) $+ "
Also you can remove 'clear @LogViewer" and change the loadbuf to have the -r switch which does the same thing.