Update Logr.js

Renamed the variable `f` to `method`.