added support for logging objects