{"action":"created","issue":{"url":"https://api.github.com/repos/Meituan-Dianping/Logan/issues/7","repository_url":"https://api.github.com/repos/Meituan-Dianping/Logan","labels_url":"https://api.github.com/repos/Meituan-Dianping/Logan/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/Meituan-Dianping/Logan/issues/7/comments","events_url":"https://api.github.com/repos/Meituan-Dianping/Logan/issues/7/events","html_url":"https://github.com/Meituan-Dianping/Logan/issues/7","id":369435519,"node_id":"MDU6SXNzdWUzNjk0MzU1MTk=","number":7,"title":"support print function name, line, file name in log","user":{"login":"piaojin","id":10163672,"node_id":"MDQ6VXNlcjEwMTYzNjcy","avatar_url":"https://avatars2.githubusercontent.com/u/10163672?v=4","gravatar_id":"","url":"https://api.github.com/users/piaojin","html_url":"https://github.com/piaojin","followers_url":"https://api.github.com/users/piaojin/followers","following_url":"https://api.github.com/users/piaojin/following{/other_user}","gists_url":"https://api.github.com/users/piaojin/gists{/gist_id}","starred_url":"https://api.github.com/users/piaojin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piaojin/subscriptions","organizations_url":"https://api.github.com/users/piaojin/orgs","repos_url":"https://api.github.com/users/piaojin/repos","events_url":"https://api.github.com/users/piaojin/events{/privacy}","received_events_url":"https://api.github.com/users/piaojin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-12T07:41:49Z","updated_at":"2018-10-12T08:36:36Z","closed_at":null,"author_association":"NONE","body":"@jiangteng in server demo the decode  log is: ```  {\"c\":\"clogan header\",\"f\":1,\"l\":1539321701072,\"n\":\"clogan\",\"i\":1,\"m\":true}\r\n�{\"c\":\"1\\tclick button 0\\t\",\"f\":1,\"l\":1539321701061,\"n\":\"\",\"i\":1,\"m\":true} ```\r\n\r\nBut it doesn't include function name, line, file name so it's not particularly convenient to find out which function triggered the log.\r\n\r\neg: \r\n```\r\n//printf(\"123\"),printf(\"456\");\r\n#define TRACE_CMH_1 (printf(\"%s(%d)-<%s>: \",__FILE__, __LINE__, __FUNCTION__), printf)\r\n \r\n//printf(\"%d\"\"%d\", 1, 2);\r\n#define TRACE_CMH_2(fmt,...) \\\r\n\tprintf(\"%s(%d)-<%s>: \"##fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__)\r\n```"},"comment":{"url":"https://api.github.com/repos/Meituan-Dianping/Logan/issues/comments/429249708","html_url":"https://github.com/Meituan-Dianping/Logan/issues/7#issuecomment-429249708","issue_url":"https://api.github.com/repos/Meituan-Dianping/Logan/issues/7","id":429249708,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTI0OTcwOA==","user":{"login":"jiangteng","id":7625449,"node_id":"MDQ6VXNlcjc2MjU0NDk=","avatar_url":"https://avatars1.githubusercontent.com/u/7625449?v=4","gravatar_id":"","url":"https://api.github.com/users/jiangteng","html_url":"https://github.com/jiangteng","followers_url":"https://api.github.com/users/jiangteng/followers","following_url":"https://api.github.com/users/jiangteng/following{/other_user}","gists_url":"https://api.github.com/users/jiangteng/gists{/gist_id}","starred_url":"https://api.github.com/users/jiangteng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiangteng/subscriptions","organizations_url":"https://api.github.com/users/jiangteng/orgs","repos_url":"https://api.github.com/users/jiangteng/repos","events_url":"https://api.github.com/users/jiangteng/events{/privacy}","received_events_url":"https://api.github.com/users/jiangteng/received_events","type":"User","site_admin":false},"created_at":"2018-10-12T08:36:36Z","updated_at":"2018-10-12T08:36:36Z","author_association":"COLLABORATOR","body":"Logan log support type, if the log type requires method name, function name can be encapsulated and then write to Logan.Log content belongs to the log input module.\r\n<img width=\"918\" alt=\"wx20181012-163220 2x\" src=\"https://user-images.githubusercontent.com/7625449/46857839-6ef96d80-ce3c-11e8-87ce-575daa6412f6.png\">\r\n\r\n"}}
{"actor":{"display_login":"jiangteng"}}