Issue #5214: Add checking the file and moving log text
Merge pull request #1859 from VisualSJ/develop-5-15

Issue #5214: Add checking the file and moving log text