After all, I gave up on making logs persistent (the performance issue).
The problem has been solved by adding LogSaverListener to SchedulerThread. LogSaverListener class implements SchedulerListener interface and simply stores the logs if any are added to a process instance associated with a timer.
- best
patka