Add a log level flag.
Merge pull request #2943 from brendandburns/flags

Add a log level flag.