A `console` compatible interface which emits events on console method calls