retrieving application's log file as string

is there a way to copy, say the last 10 lines, of my app’s log file into a string (for a sort of bug report system?

thanks

For example:

set theLog to alias "path:to:log.txt"
set last10lines to (do shell script "tail " & quoted form of posix path of theLog)