Check for both presence of logger method and that it returns something -- this seems to accommodate both older and newer rack version behavior.