added pretty print object logging