{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/12682","labels_url":"https://api.github.com/repos/owncloud/core/issues/12682/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/12682/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/12682/events","html_url":"https://github.com/owncloud/core/pull/12682","id":51244749,"number":12682,"title":"Dump Arrays, Objects and Exceptions to the log","user":{"login":"oparoz","id":323220,"avatar_url":"https://avatars.githubusercontent.com/u/323220?v=3","gravatar_id":"","url":"https://api.github.com/users/oparoz","html_url":"https://github.com/oparoz","followers_url":"https://api.github.com/users/oparoz/followers","following_url":"https://api.github.com/users/oparoz/following{/other_user}","gists_url":"https://api.github.com/users/oparoz/gists{/gist_id}","starred_url":"https://api.github.com/users/oparoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oparoz/subscriptions","organizations_url":"https://api.github.com/users/oparoz/orgs","repos_url":"https://api.github.com/users/oparoz/repos","events_url":"https://api.github.com/users/oparoz/events{/privacy}","received_events_url":"https://api.github.com/users/oparoz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/4%20-%20Developing","name":"4 - Developing","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"oparoz","id":323220,"avatar_url":"https://avatars.githubusercontent.com/u/323220?v=3","gravatar_id":"","url":"https://api.github.com/users/oparoz","html_url":"https://github.com/oparoz","followers_url":"https://api.github.com/users/oparoz/followers","following_url":"https://api.github.com/users/oparoz/following{/other_user}","gists_url":"https://api.github.com/users/oparoz/gists{/gist_id}","starred_url":"https://api.github.com/users/oparoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oparoz/subscriptions","organizations_url":"https://api.github.com/users/oparoz/orgs","repos_url":"https://api.github.com/users/oparoz/repos","events_url":"https://api.github.com/users/oparoz/events{/privacy}","received_events_url":"https://api.github.com/users/oparoz/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/37","html_url":"https://github.com/owncloud/core/milestones/8.2-next","labels_url":"https://api.github.com/repos/owncloud/core/milestones/37/labels","id":993629,"number":37,"title":"8.2-next","description":"","creator":{"login":"craigpg","id":160667,"avatar_url":"https://avatars.githubusercontent.com/u/160667?v=3","gravatar_id":"","url":"https://api.github.com/users/craigpg","html_url":"https://github.com/craigpg","followers_url":"https://api.github.com/users/craigpg/followers","following_url":"https://api.github.com/users/craigpg/following{/other_user}","gists_url":"https://api.github.com/users/craigpg/gists{/gist_id}","starred_url":"https://api.github.com/users/craigpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigpg/subscriptions","organizations_url":"https://api.github.com/users/craigpg/orgs","repos_url":"https://api.github.com/users/craigpg/repos","events_url":"https://api.github.com/users/craigpg/events{/privacy}","received_events_url":"https://api.github.com/users/craigpg/received_events","type":"User","site_admin":false},"open_issues":277,"closed_issues":0,"state":"open","created_at":"2015-02-24T16:19:37Z","updated_at":"2015-04-13T12:45:55Z","due_on":null,"closed_at":null},"comments":16,"created_at":"2014-12-08T03:18:24Z","updated_at":"2015-04-13T12:58:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/owncloud/core/pulls/12682","html_url":"https://github.com/owncloud/core/pull/12682","diff_url":"https://github.com/owncloud/core/pull/12682.diff","patch_url":"https://github.com/owncloud/core/pull/12682.patch"},"body":"This is a first draft. It has only been tested with the ownlcloud logger.\r\nSome internal fields are JSON encoded several times which makes it harder to read.\r\nIt's possible to make the output prettier.\r\n\r\nYou add the variables to the context array like this:\r\nA couple of examples\r\n```\r\n$this->logger->debug(\"Here is what's inside this FileInfo object: {fileinfo}\", array(\r\n\t'app' => 'myApp',\r\n\t'fileinfo' => $fileInfo,\r\n));\r\ntry {\r\n\tthrow new \\Exception(\"I want to be logged as an Exception!\");\r\n} catch (\\Exception $e) {\r\n\t$this->logger->debug(\"I'm logging the full Exception object here: {exception}\", array(\r\n\t\t'app' => 'myApp',\r\n\t\t'exception' => $e,\r\n\t));\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/92342286","html_url":"https://github.com/owncloud/core/pull/12682#issuecomment-92342286","issue_url":"https://api.github.com/repos/owncloud/core/issues/12682","id":92342286,"user":{"login":"scrutinizer-notifier","id":6398257,"avatar_url":"https://avatars.githubusercontent.com/u/6398257?v=3","gravatar_id":"","url":"https://api.github.com/users/scrutinizer-notifier","html_url":"https://github.com/scrutinizer-notifier","followers_url":"https://api.github.com/users/scrutinizer-notifier/followers","following_url":"https://api.github.com/users/scrutinizer-notifier/following{/other_user}","gists_url":"https://api.github.com/users/scrutinizer-notifier/gists{/gist_id}","starred_url":"https://api.github.com/users/scrutinizer-notifier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrutinizer-notifier/subscriptions","organizations_url":"https://api.github.com/users/scrutinizer-notifier/orgs","repos_url":"https://api.github.com/users/scrutinizer-notifier/repos","events_url":"https://api.github.com/users/scrutinizer-notifier/events{/privacy}","received_events_url":"https://api.github.com/users/scrutinizer-notifier/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T12:58:29Z","updated_at":"2015-04-13T12:58:29Z","body":"The [inspection](https://scrutinizer-ci.com/g/owncloud/core/inspections/858cd010-71ed-411c-ad4d-1e00a9ac8fb0) completed: **2 new issues, 9 updated code elements**"}}