f(x): use Rails logger, if available