Add new getLogs prototype