Add support for logging severity

please review @r0mant @jeremyschlatter @anton-efimenko 
How about "UNKNOWN SEVERITY"? I'm imagining seeing lots of "UNKNOWN" lines in a log and being confused. Making the string a little longer would make it easier to track down where it came from.