API to retrieve logs

Does an API exist to retrieve logs of objects?