adding logging support for objects