Add support for logging severity

please review @r0mant @jeremyschlatter @anton-efimenko 
Adding `\n` to tests fixed it, so I removed TrimSpaces