Support for logging objects