Fixing logObjectGetterValue and adding printObjectGetterValue api