improved logging of custom class fields