Named log levels via new loglevel class

Fixes #4.
I'm also worried about the numeric representations. Is that only for backward compatibility? Anyways, other loggers don't change their levels -- 5 should be enough.