feat(log): Better support for multi-line messages (refs #5080)(refs #5054)

Also:
- Properly display module's name in getValidDOMDocumentInfoXml()