Why not use the EM Server command action to do that ?
You will ask : why getting the logs of a task ? To check about issues, errors, specific logs and time, things like that. Of course it’s still possible to explore the sqlite file of the journal but it’s not native and journal can be loaded in memory in case of sqlite lock issue.