{"action":"created","issue":{"url":"https://api.github.com/repos/six8/logaware/issues/2","repository_url":"https://api.github.com/repos/six8/logaware","labels_url":"https://api.github.com/repos/six8/logaware/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/six8/logaware/issues/2/comments","events_url":"https://api.github.com/repos/six8/logaware/issues/2/events","html_url":"https://github.com/six8/logaware/issues/2","id":181287301,"number":2,"title":"Examples to demonstrate how the logger works","user":{"login":"symbolix","id":474655,"avatar_url":"https://avatars.githubusercontent.com/u/474655?v=3","gravatar_id":"","url":"https://api.github.com/users/symbolix","html_url":"https://github.com/symbolix","followers_url":"https://api.github.com/users/symbolix/followers","following_url":"https://api.github.com/users/symbolix/following{/other_user}","gists_url":"https://api.github.com/users/symbolix/gists{/gist_id}","starred_url":"https://api.github.com/users/symbolix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symbolix/subscriptions","organizations_url":"https://api.github.com/users/symbolix/orgs","repos_url":"https://api.github.com/users/symbolix/repos","events_url":"https://api.github.com/users/symbolix/events{/privacy}","received_events_url":"https://api.github.com/users/symbolix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-10-05T23:03:32Z","updated_at":"2016-10-07T20:29:21Z","closed_at":null,"body":"Hi,\r\n\r\nThank you very much for creating this logging module. Could you please help me by providing a simple example regarding the usage of this module? I tried couple of things, however was not able to get it working. A simple case example would be really helpful. (All the `tox` tests are passing by the way and I am on Python 2.7). Thanks."},"comment":{"url":"https://api.github.com/repos/six8/logaware/issues/comments/252353402","html_url":"https://github.com/six8/logaware/issues/2#issuecomment-252353402","issue_url":"https://api.github.com/repos/six8/logaware/issues/2","id":252353402,"user":{"login":"symbolix","id":474655,"avatar_url":"https://avatars.githubusercontent.com/u/474655?v=3","gravatar_id":"","url":"https://api.github.com/users/symbolix","html_url":"https://github.com/symbolix","followers_url":"https://api.github.com/users/symbolix/followers","following_url":"https://api.github.com/users/symbolix/following{/other_user}","gists_url":"https://api.github.com/users/symbolix/gists{/gist_id}","starred_url":"https://api.github.com/users/symbolix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symbolix/subscriptions","organizations_url":"https://api.github.com/users/symbolix/orgs","repos_url":"https://api.github.com/users/symbolix/repos","events_url":"https://api.github.com/users/symbolix/events{/privacy}","received_events_url":"https://api.github.com/users/symbolix/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T20:29:21Z","updated_at":"2016-10-07T20:29:21Z","body":"With a formatter like:\r\n\r\n```\r\nformat='[%(asctime)-15s] __%(name)s__ {%(filename)s:%(module)s:%(funcName)s:%(lineno)s} - %(message)s'\r\n```\r\n\r\nI get:\r\n\r\n```\r\n[2016-10-07 21:21:53,280] __modules.mymodule__ {mymodule.py:mymodule:my_sub_func:11} - >> Module function called.\r\n```\r\n\r\nwhich works, however, how can I pass-in some extra information such as:\r\n\r\n```\r\nmeta_log.debug('>> Module function called.',  event=ERR, code=0010)\r\n```\r\n\r\nand get:\r\n\r\n```\r\n[2016-10-07 21:21:53,280] __modules.mymodule__ {mymodule.py:mymodule:my_sub_func:11} -  <%ERR:0010> - >> Module function called.\r\n```\r\n\r\nObviously, I can do that with the native logger by using the `extra={'event': 'NFO', 'code': '0101'}` bit. But I am trying to get a better grasp of the benefits of `logaware`.\r\n\r\nThanks.\r\n"}}
{"actor":{"display_login":"symbolix"}}