Properly log multi-line log messages
Merge pull request #804 from Singly/bg-fix-logging

Properly log multi-line log messages