make log_repr resilient to recursive objects
docstring update
log_repr: limit number of fields in a class
enforce 'logged' constraint for every class.