fix get_property_by_class with logger