{"action":"closed","issue":{"url":"https://api.github.com/repos/UnquietCode/LogMachine/issues/63","labels_url":"https://api.github.com/repos/UnquietCode/LogMachine/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/UnquietCode/LogMachine/issues/63/comments","events_url":"https://api.github.com/repos/UnquietCode/LogMachine/issues/63/events","html_url":"https://github.com/UnquietCode/LogMachine/issues/63","id":69734966,"number":63,"title":"LOG-26: Key/Value pairs for contextual logging.","user":{"login":"UnquietCode","id":146995,"avatar_url":"https://avatars.githubusercontent.com/u/146995?v=3","gravatar_id":"","url":"https://api.github.com/users/UnquietCode","html_url":"https://github.com/UnquietCode","followers_url":"https://api.github.com/users/UnquietCode/followers","following_url":"https://api.github.com/users/UnquietCode/following{/other_user}","gists_url":"https://api.github.com/users/UnquietCode/gists{/gist_id}","starred_url":"https://api.github.com/users/UnquietCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UnquietCode/subscriptions","organizations_url":"https://api.github.com/users/UnquietCode/orgs","repos_url":"https://api.github.com/users/UnquietCode/repos","events_url":"https://api.github.com/users/UnquietCode/events{/privacy}","received_events_url":"https://api.github.com/users/UnquietCode/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/UnquietCode/LogMachine/labels/Feature","name":"Feature","color":"d98a25"}],"state":"closed","locked":false,"assignee":{"login":"UnquietCode","id":146995,"avatar_url":"https://avatars.githubusercontent.com/u/146995?v=3","gravatar_id":"","url":"https://api.github.com/users/UnquietCode","html_url":"https://github.com/UnquietCode","followers_url":"https://api.github.com/users/UnquietCode/followers","following_url":"https://api.github.com/users/UnquietCode/following{/other_user}","gists_url":"https://api.github.com/users/UnquietCode/gists{/gist_id}","starred_url":"https://api.github.com/users/UnquietCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UnquietCode/subscriptions","organizations_url":"https://api.github.com/users/UnquietCode/orgs","repos_url":"https://api.github.com/users/UnquietCode/repos","events_url":"https://api.github.com/users/UnquietCode/events{/privacy}","received_events_url":"https://api.github.com/users/UnquietCode/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-04-21T03:37:50Z","updated_at":"2015-04-21T03:37:51Z","closed_at":"2015-04-21T03:37:51Z","body":"Add  the ability to encode key/value pairs into the log event.\n\nFor example:```\n\nlog.with(\"k1\", \"v1\").with(\"k2\", \"v2\").error(\"Something went wrong!\");\n\n```\n\nHere the `\n.with(k, v)\n` method builds up a context. This could even be expanded to cover replacement values.\n\nExample, with numeric replacement:```\n\nlog.with(\"id\", id).debug(\"Saving an item with id '{}'.\", id);\n\n```\n\nExample, with k/v replacement:```\n\nlog.with(\"id\", id).debug(\"Saving an item with id '{id}'.\");\n\n```\n\nThese will be encoded into the JSON as well, for handy metadata.\n(Consider some overloaded methods for accepting numeric and enum values.)\n\n--------------------------------------------------\nImported from JIRA\nOriginally reported by: [UnquietCode](https://github.com/UnquietCode)"}}