Simplified the log level name <--> number lookup in a few places.
Merge pull request #56 from cederberg/refactor_reverse_level_lookup

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