Pass severity to log functions
Merge pull request #1 from rsterbin/severity

Pass severity to log functions