Couldn't this be simplified to this?

```ruby
def log_level=(level)
  level = Logger.const_get(level) if level.is_a?(String)
  logger.level = level
end
```

and just let it fail hard.