Simplified the log level name <--> number lookup in a few places.

Just a few refactorings more, and all functions will be one-liners... :smiley: 
I think this variable should definitely be called methodName, or similar, not method; it's a string, not a function (arguably logMethods should be logMethodNames for the same reasons, I guess)