Named log levels via new loglevel class

Fixes #4.
I think that would be good.