I'd have to double-check out JRuby would handle callsite caching with dynamic dispatch, but since you only have two cases, it might be better to just do something like:

```
if time >= slowlog_threshold
  logger.warn { whatever }
else
  logger.debug { whatever }
end
```

The idea being to keep logging as lightweight as possible.