Log cursor

Implement log cursors.