implement `POST /log` to retrieve console/browser logs