Looks like [this](http://docs.python.org/2/library/logging.html#logging.addLevelName) is the official way of doing it, but your way does the trick