Add object logging

This PR adds the object logging mechanism after fixing some interface defintions for this.