{"action":"created","issue":{"url":"https://api.github.com/repos/hynek/structlog/issues/70","repository_url":"https://api.github.com/repos/hynek/structlog","labels_url":"https://api.github.com/repos/hynek/structlog/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/hynek/structlog/issues/70/comments","events_url":"https://api.github.com/repos/hynek/structlog/issues/70/events","html_url":"https://github.com/hynek/structlog/issues/70","id":154783760,"number":70,"title":"Apply positional arguments to output","user":{"login":"tejasmanohar","id":5959235,"avatar_url":"https://avatars.githubusercontent.com/u/5959235?v=3","gravatar_id":"","url":"https://api.github.com/users/tejasmanohar","html_url":"https://github.com/tejasmanohar","followers_url":"https://api.github.com/users/tejasmanohar/followers","following_url":"https://api.github.com/users/tejasmanohar/following{/other_user}","gists_url":"https://api.github.com/users/tejasmanohar/gists{/gist_id}","starred_url":"https://api.github.com/users/tejasmanohar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tejasmanohar/subscriptions","organizations_url":"https://api.github.com/users/tejasmanohar/orgs","repos_url":"https://api.github.com/users/tejasmanohar/repos","events_url":"https://api.github.com/users/tejasmanohar/events{/privacy}","received_events_url":"https://api.github.com/users/tejasmanohar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-13T19:27:40Z","updated_at":"2016-05-14T12:21:12Z","closed_at":null,"body":"http://www.structlog.org/en/stable/api.html#structlog.stdlib.PositionalArgumentsFormatter\r\n\r\nHmm, is there a formatter for applying the 2nd argument (dict) to the JSON output? For example,\r\n\r\n`log.info('hi', { 'xyz': 123 })`\r\n`{ \"event\": \"hi\", \"xyz\": 123 }`"},"comment":{"url":"https://api.github.com/repos/hynek/structlog/issues/comments/219217411","html_url":"https://github.com/hynek/structlog/issues/70#issuecomment-219217411","issue_url":"https://api.github.com/repos/hynek/structlog/issues/70","id":219217411,"user":{"login":"hynek","id":41240,"avatar_url":"https://avatars.githubusercontent.com/u/41240?v=3","gravatar_id":"","url":"https://api.github.com/users/hynek","html_url":"https://github.com/hynek","followers_url":"https://api.github.com/users/hynek/followers","following_url":"https://api.github.com/users/hynek/following{/other_user}","gists_url":"https://api.github.com/users/hynek/gists{/gist_id}","starred_url":"https://api.github.com/users/hynek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hynek/subscriptions","organizations_url":"https://api.github.com/users/hynek/orgs","repos_url":"https://api.github.com/users/hynek/repos","events_url":"https://api.github.com/users/hynek/events{/privacy}","received_events_url":"https://api.github.com/users/hynek/received_events","type":"User","site_admin":false},"created_at":"2016-05-14T12:21:11Z","updated_at":"2016-05-14T12:21:11Z","body":"that’s not a thing for the formatter.  the positional args formatter is to allow format strings in your event.  something you really shouldn’t do, it’s in there to make structlog easier to drop in into existing code bases.\r\n\r\neither you write an own logger that handles that case: http://www.structlog.org/en/stable/custom-wrappers.html\r\n\r\nor you simple write `log.info('hi', xyz=123)` or `log.info('hi', **{ 'xyz': 123 })`"}}