Improved object logging