Is there an api for getting live log from running job?

Hi here,
I would like to integrate to gitlab api and retrieve last line of log file from running job. Till now, I have found that:

Is there any better way getting live log data, despite polling? Is there any parameter to trace call, to send only last line?