Adding logging statements to the object_interface macro.