{"action":"created","issue":{"url":"https://api.github.com/repos/JakeWharton/timber/issues/135","repository_url":"https://api.github.com/repos/JakeWharton/timber","labels_url":"https://api.github.com/repos/JakeWharton/timber/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/JakeWharton/timber/issues/135/comments","events_url":"https://api.github.com/repos/JakeWharton/timber/issues/135/events","html_url":"https://github.com/JakeWharton/timber/issues/135","id":148937311,"number":135,"title":"Possible to log automatically the method name?","user":{"login":"Rainer-Lang","id":9607880,"avatar_url":"https://avatars.githubusercontent.com/u/9607880?v=3","gravatar_id":"","url":"https://api.github.com/users/Rainer-Lang","html_url":"https://github.com/Rainer-Lang","followers_url":"https://api.github.com/users/Rainer-Lang/followers","following_url":"https://api.github.com/users/Rainer-Lang/following{/other_user}","gists_url":"https://api.github.com/users/Rainer-Lang/gists{/gist_id}","starred_url":"https://api.github.com/users/Rainer-Lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rainer-Lang/subscriptions","organizations_url":"https://api.github.com/users/Rainer-Lang/orgs","repos_url":"https://api.github.com/users/Rainer-Lang/repos","events_url":"https://api.github.com/users/Rainer-Lang/events{/privacy}","received_events_url":"https://api.github.com/users/Rainer-Lang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-17T10:11:56Z","updated_at":"2016-05-23T22:24:14Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/JakeWharton/timber/issues/comments/221114129","html_url":"https://github.com/JakeWharton/timber/issues/135#issuecomment-221114129","issue_url":"https://api.github.com/repos/JakeWharton/timber/issues/135","id":221114129,"user":{"login":"ciscorucinski","id":8707125,"avatar_url":"https://avatars.githubusercontent.com/u/8707125?v=3","gravatar_id":"","url":"https://api.github.com/users/ciscorucinski","html_url":"https://github.com/ciscorucinski","followers_url":"https://api.github.com/users/ciscorucinski/followers","following_url":"https://api.github.com/users/ciscorucinski/following{/other_user}","gists_url":"https://api.github.com/users/ciscorucinski/gists{/gist_id}","starred_url":"https://api.github.com/users/ciscorucinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciscorucinski/subscriptions","organizations_url":"https://api.github.com/users/ciscorucinski/orgs","repos_url":"https://api.github.com/users/ciscorucinski/repos","events_url":"https://api.github.com/users/ciscorucinski/events{/privacy}","received_events_url":"https://api.github.com/users/ciscorucinski/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T22:24:14Z","updated_at":"2016-05-23T22:24:14Z","body":"If you `override` the `Tree`'s `createStackElementTag` method, then you will have access to the method name I believe. Check out around `Line 5` and put something like `element.getMethodName()`\r\n\r\n    Timber.plant(new Timber.DebugTree() {\r\n        @Override\r\n        protected String createStackElementTag(StackTraceElement element) {\r\n            return String.format(\"%s:%s\",\r\n                                 element.getLineNumber(),\r\n                                 super.createStackElementTag(element)\r\n                                );\r\n        }\r\n    });"}}
{"actor":{"display_login":"ciscorucinski"}}