What about something like this to avoid recreating the list of log levels in another place:

```
global_level = Mixlib::Log::LEVELS.fetch(Chef::Log.level)
resource_level = Mixlib::Log::LEVELS.fetch(@new_resource.level)
```