{"action":"created","issue":{"url":"https://api.github.com/repos/google/martian/issues/32","labels_url":"https://api.github.com/repos/google/martian/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/google/martian/issues/32/comments","events_url":"https://api.github.com/repos/google/martian/issues/32/events","html_url":"https://github.com/google/martian/issues/32","id":103395797,"number":32,"title":"Optionally log request & response bodies?","user":{"login":"bootstraponline","id":1173057,"avatar_url":"https://avatars.githubusercontent.com/u/1173057?v=3","gravatar_id":"","url":"https://api.github.com/users/bootstraponline","html_url":"https://github.com/bootstraponline","followers_url":"https://api.github.com/users/bootstraponline/followers","following_url":"https://api.github.com/users/bootstraponline/following{/other_user}","gists_url":"https://api.github.com/users/bootstraponline/gists{/gist_id}","starred_url":"https://api.github.com/users/bootstraponline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bootstraponline/subscriptions","organizations_url":"https://api.github.com/users/bootstraponline/orgs","repos_url":"https://api.github.com/users/bootstraponline/repos","events_url":"https://api.github.com/users/bootstraponline/events{/privacy}","received_events_url":"https://api.github.com/users/bootstraponline/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-27T00:44:37Z","updated_at":"2015-08-27T02:11:50Z","closed_at":null,"body":"> The body of requests and responses are not logged for performance reasons (chunked encoding).\r\n>\r\n> https://github.com/google/martian/wiki/Modifier-Reference#logging\r\n\r\nIt'd be nice if one could optionally log request & response bodies. I'm looking for an easy way to dump requests/responses as JSON (ideally [HAR](http://www.softwareishard.com/blog/har-12-spec/))."},"comment":{"url":"https://api.github.com/repos/google/martian/issues/comments/135246440","html_url":"https://github.com/google/martian/issues/32#issuecomment-135246440","issue_url":"https://api.github.com/repos/google/martian/issues/32","id":135246440,"user":{"login":"adamtanner","id":27502,"avatar_url":"https://avatars.githubusercontent.com/u/27502?v=3","gravatar_id":"","url":"https://api.github.com/users/adamtanner","html_url":"https://github.com/adamtanner","followers_url":"https://api.github.com/users/adamtanner/followers","following_url":"https://api.github.com/users/adamtanner/following{/other_user}","gists_url":"https://api.github.com/users/adamtanner/gists{/gist_id}","starred_url":"https://api.github.com/users/adamtanner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamtanner/subscriptions","organizations_url":"https://api.github.com/users/adamtanner/orgs","repos_url":"https://api.github.com/users/adamtanner/repos","events_url":"https://api.github.com/users/adamtanner/events{/privacy}","received_events_url":"https://api.github.com/users/adamtanner/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T02:11:50Z","updated_at":"2015-08-27T02:11:50Z","body":"Thanks for the issue! :+1: \r\n\r\nI've updated the docs to reflect some recent changes in `log.Logger` that enable it to log message bodies, optionally dechunking and decompressing them so that they are readable in the log output.\r\n\r\nWe actually have an implementation of a HAR logger for Martian internally that we held off on open sourcing because it's not entirely to spec. Some places of the spec are vague and there are some fields we just haven't implemented. We can look into prioritizing open sourcing it.\r\n\r\nI'd like to understand your use case a bit more though. What problem are you trying to solve with HAR logs? Do you need HAR specifically or would any log formatted as JSON work? I ask because we've talked about doing a more lightweight JSON log format for Martian in the past."}}