Setting handler log level by name

The logging module uses an integer for handler.setLevel(), so we need a mapping from level name to integer.