I haven't delved into Greasemonkey scripts yet, but it seems like this would be possible.
It would be useful to add a dedicated form field to the page for the log file link. This field can be marked required and then on page submit, the contents of this field would be appended to the comments field.