When navigating to yourJenkins/computer/anyAgent/log, you need to select the entire page to grab the log. It would be beneficial to add a copy button, to grab the entire log with a single click, as done for thread dumps or the script console.
The relevant file is located at core/src/main/resources/hudson/slaves/SlaveComputer/log.jelly