I would then parse the logfile rather than diag.txt. But the problem is indeed that you can not access the logfile while Zorro is writing into it.

I'll think about a solution, maybe an additional log channel that can be evaluated by external programs.