Bugfix: add logs to history. Closes #2871.
Merge remote-tracking branch 'ivan/bug/2871_fix-logger-history' into develop