{"action":"closed","issue":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/1677","labels_url":"https://api.github.com/repos/Codeception/Codeception/issues/1677/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/1677/comments","events_url":"https://api.github.com/repos/Codeception/Codeception/issues/1677/events","html_url":"https://github.com/Codeception/Codeception/issues/1677","id":55600561,"number":1677,"title":"How to extend variable output?","user":{"login":"jaspernbrouwer","id":738933,"avatar_url":"https://avatars.githubusercontent.com/u/738933?v=3","gravatar_id":"","url":"https://api.github.com/users/jaspernbrouwer","html_url":"https://github.com/jaspernbrouwer","followers_url":"https://api.github.com/users/jaspernbrouwer/followers","following_url":"https://api.github.com/users/jaspernbrouwer/following{/other_user}","gists_url":"https://api.github.com/users/jaspernbrouwer/gists{/gist_id}","starred_url":"https://api.github.com/users/jaspernbrouwer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaspernbrouwer/subscriptions","organizations_url":"https://api.github.com/users/jaspernbrouwer/orgs","repos_url":"https://api.github.com/users/jaspernbrouwer/repos","events_url":"https://api.github.com/users/jaspernbrouwer/events{/privacy}","received_events_url":"https://api.github.com/users/jaspernbrouwer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-27T10:32:09Z","updated_at":"2015-02-02T02:18:17Z","closed_at":"2015-02-02T02:18:17Z","body":"Is there a way to hook into the process that serializes/formats a variable for the output?\r\n\r\nLet's say I have a User object, and when a login test fails, I see the output:\r\n```txt\r\nFailed to log in as \"User\"\r\n```\r\n\r\nI would very much like to have output like this:\r\n```txt\r\nFailed to log in as \"User(123)\"\r\n```\r\n\r\nOf course this is an over-simplified example, but I have lots of test that work with objects and cannot clearly determine _which_ object a failure relates to (only its classname).\r\n\r\nIs this possible?\r\nIf so, how do I go about it?"}}