Added very basic logging of public fields of a class/struct