{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/stetho/issues/370","repository_url":"https://api.github.com/repos/facebook/stetho","labels_url":"https://api.github.com/repos/facebook/stetho/issues/370/labels{/name}","comments_url":"https://api.github.com/repos/facebook/stetho/issues/370/comments","events_url":"https://api.github.com/repos/facebook/stetho/issues/370/events","html_url":"https://github.com/facebook/stetho/issues/370","id":147933388,"number":370,"title":"How to use Console.ConsoleMessage with properties 'type'?","user":{"login":"misakuo","id":6958743,"avatar_url":"https://avatars.githubusercontent.com/u/6958743?v=3","gravatar_id":"","url":"https://api.github.com/users/misakuo","html_url":"https://github.com/misakuo","followers_url":"https://api.github.com/users/misakuo/followers","following_url":"https://api.github.com/users/misakuo/following{/other_user}","gists_url":"https://api.github.com/users/misakuo/gists{/gist_id}","starred_url":"https://api.github.com/users/misakuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misakuo/subscriptions","organizations_url":"https://api.github.com/users/misakuo/orgs","repos_url":"https://api.github.com/users/misakuo/repos","events_url":"https://api.github.com/users/misakuo/events{/privacy}","received_events_url":"https://api.github.com/users/misakuo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-13T03:05:17Z","updated_at":"2016-04-13T03:08:56Z","closed_at":null,"body":"I want to send log from Android APP to DevTools console    \r\nI'm using CLog.writeToConsole and add 'type' field to class ConsoleMessage\r\n```\r\npublic static class ConsoleMessage {\r\n        @JsonProperty(required = true)\r\n        public MessageSource source;\r\n\r\n        @JsonProperty(required = true)\r\n        public MessageLevel level;\r\n\r\n        @JsonProperty(required = true)\r\n        public String text;\r\n\r\n        @JsonProperty(required = false)\r\n        public MessageType type;\r\n    }\r\n```\r\nIf setting field `type` as string `\"log\"`, all is well, but when setting it to `\"table\"/\"dir\"` or other, the console output `undefined`, the reason might be function console.table() expect a `Object` but giving `String` .\r\nSo how can I show table or dir on console as my expect?\r\nThanks a lot!"},"comment":{"url":"https://api.github.com/repos/facebook/stetho/issues/comments/209206324","html_url":"https://github.com/facebook/stetho/issues/370#issuecomment-209206324","issue_url":"https://api.github.com/repos/facebook/stetho/issues/370","id":209206324,"user":{"login":"misakuo","id":6958743,"avatar_url":"https://avatars.githubusercontent.com/u/6958743?v=3","gravatar_id":"","url":"https://api.github.com/users/misakuo","html_url":"https://github.com/misakuo","followers_url":"https://api.github.com/users/misakuo/followers","following_url":"https://api.github.com/users/misakuo/following{/other_user}","gists_url":"https://api.github.com/users/misakuo/gists{/gist_id}","starred_url":"https://api.github.com/users/misakuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misakuo/subscriptions","organizations_url":"https://api.github.com/users/misakuo/orgs","repos_url":"https://api.github.com/users/misakuo/repos","events_url":"https://api.github.com/users/misakuo/events{/privacy}","received_events_url":"https://api.github.com/users/misakuo/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T03:08:56Z","updated_at":"2016-04-13T03:08:56Z","body":"By the way, the filed `text` was assigned by `JSONArray.toString()` or `List.toString()` when I setting `type` to `\"table\"` "}}