{"action":"created","issue":{"url":"https://api.github.com/repos/rackerlabs/otter/issues/1116","labels_url":"https://api.github.com/repos/rackerlabs/otter/issues/1116/labels{/name}","comments_url":"https://api.github.com/repos/rackerlabs/otter/issues/1116/comments","events_url":"https://api.github.com/repos/rackerlabs/otter/issues/1116/events","html_url":"https://github.com/rackerlabs/otter/pull/1116","id":58277265,"number":1116,"title":"Specification based logging","user":{"login":"manishtomar","id":758529,"avatar_url":"https://avatars.githubusercontent.com/u/758529?v=3","gravatar_id":"","url":"https://api.github.com/users/manishtomar","html_url":"https://github.com/manishtomar","followers_url":"https://api.github.com/users/manishtomar/followers","following_url":"https://api.github.com/users/manishtomar/following{/other_user}","gists_url":"https://api.github.com/users/manishtomar/gists{/gist_id}","starred_url":"https://api.github.com/users/manishtomar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manishtomar/subscriptions","organizations_url":"https://api.github.com/users/manishtomar/orgs","repos_url":"https://api.github.com/users/manishtomar/repos","events_url":"https://api.github.com/users/manishtomar/events{/privacy}","received_events_url":"https://api.github.com/users/manishtomar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rackerlabs/otter/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-19T22:01:25Z","updated_at":"2015-02-20T20:27:03Z","closed_at":"2015-02-20T20:27:03Z","pull_request":{"url":"https://api.github.com/repos/rackerlabs/otter/pulls/1116","html_url":"https://github.com/rackerlabs/otter/pull/1116","diff_url":"https://github.com/rackerlabs/otter/pull/1116.diff","patch_url":"https://github.com/rackerlabs/otter/pull/1116.patch"},"body":"Implements #1107 and part of #1115. This is not completed. I wanted to get the idea across and get it reviewed. Sample logging code: \r\n```python\r\nlog.msg(\"launch-servers\", num_servers=4)\r\n```\r\nThis will get validated and translated to `log.msg(\"Launching {num_servers} servers\", num_servers=4, otter_msg_type=\"launch-servers\")`. \r\n\r\nFor errors, it will look for `details` property and validate fields in that. The `details` property is expected to be expanded in `otter.log.formatters.ObserverWrapper`. That may not be the best place to expand `details` but I'll think some more about it."},"comment":{"url":"https://api.github.com/repos/rackerlabs/otter/issues/comments/75313266","html_url":"https://github.com/rackerlabs/otter/pull/1116#issuecomment-75313266","issue_url":"https://api.github.com/repos/rackerlabs/otter/issues/1116","id":75313266,"user":{"login":"manishtomar","id":758529,"avatar_url":"https://avatars.githubusercontent.com/u/758529?v=3","gravatar_id":"","url":"https://api.github.com/users/manishtomar","html_url":"https://github.com/manishtomar","followers_url":"https://api.github.com/users/manishtomar/followers","following_url":"https://api.github.com/users/manishtomar/following{/other_user}","gists_url":"https://api.github.com/users/manishtomar/gists{/gist_id}","starred_url":"https://api.github.com/users/manishtomar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manishtomar/subscriptions","organizations_url":"https://api.github.com/users/manishtomar/orgs","repos_url":"https://api.github.com/users/manishtomar/repos","events_url":"https://api.github.com/users/manishtomar/events{/privacy}","received_events_url":"https://api.github.com/users/manishtomar/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T20:27:03Z","updated_at":"2015-02-20T20:27:03Z","body":"Temporarily closing this. I plan to do minor refactor of formatters and come back to this after that."}}