{"action":"closed","issue":{"url":"https://api.github.com/repos/docker/distribution/issues/286","labels_url":"https://api.github.com/repos/docker/distribution/issues/286/labels{/name}","comments_url":"https://api.github.com/repos/docker/distribution/issues/286/comments","events_url":"https://api.github.com/repos/docker/distribution/issues/286/events","html_url":"https://github.com/docker/distribution/issues/286","id":63838147,"number":286,"title":"Add option to enable logrus JSON output","user":{"login":"avinson","id":1617166,"avatar_url":"https://avatars.githubusercontent.com/u/1617166?v=3","gravatar_id":"","url":"https://api.github.com/users/avinson","html_url":"https://github.com/avinson","followers_url":"https://api.github.com/users/avinson/followers","following_url":"https://api.github.com/users/avinson/following{/other_user}","gists_url":"https://api.github.com/users/avinson/gists{/gist_id}","starred_url":"https://api.github.com/users/avinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avinson/subscriptions","organizations_url":"https://api.github.com/users/avinson/orgs","repos_url":"https://api.github.com/users/avinson/repos","events_url":"https://api.github.com/users/avinson/events{/privacy}","received_events_url":"https://api.github.com/users/avinson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/distribution/labels/docker/1.6","name":"docker/1.6","color":"eb6420"},{"url":"https://api.github.com/repos/docker/distribution/labels/enhancement","name":"enhancement","color":"bfe5bf"},{"url":"https://api.github.com/repos/docker/distribution/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"stevvooe","id":120601,"avatar_url":"https://avatars.githubusercontent.com/u/120601?v=3","gravatar_id":"","url":"https://api.github.com/users/stevvooe","html_url":"https://github.com/stevvooe","followers_url":"https://api.github.com/users/stevvooe/followers","following_url":"https://api.github.com/users/stevvooe/following{/other_user}","gists_url":"https://api.github.com/users/stevvooe/gists{/gist_id}","starred_url":"https://api.github.com/users/stevvooe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevvooe/subscriptions","organizations_url":"https://api.github.com/users/stevvooe/orgs","repos_url":"https://api.github.com/users/stevvooe/repos","events_url":"https://api.github.com/users/stevvooe/events{/privacy}","received_events_url":"https://api.github.com/users/stevvooe/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/docker/distribution/milestones/3","html_url":"https://github.com/docker/distribution/milestones/Registry/2.0.0-rc","labels_url":"https://api.github.com/repos/docker/distribution/milestones/3/labels","id":924559,"number":3,"title":"Registry/2.0.0-rc","description":"Issues that are part of the first release candidate.","creator":{"login":"stevvooe","id":120601,"avatar_url":"https://avatars.githubusercontent.com/u/120601?v=3","gravatar_id":"","url":"https://api.github.com/users/stevvooe","html_url":"https://github.com/stevvooe","followers_url":"https://api.github.com/users/stevvooe/followers","following_url":"https://api.github.com/users/stevvooe/following{/other_user}","gists_url":"https://api.github.com/users/stevvooe/gists{/gist_id}","starred_url":"https://api.github.com/users/stevvooe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevvooe/subscriptions","organizations_url":"https://api.github.com/users/stevvooe/orgs","repos_url":"https://api.github.com/users/stevvooe/repos","events_url":"https://api.github.com/users/stevvooe/events{/privacy}","received_events_url":"https://api.github.com/users/stevvooe/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":22,"state":"open","created_at":"2015-01-06T22:00:58Z","updated_at":"2015-03-25T20:34:42Z","due_on":"2015-03-31T07:00:00Z","closed_at":null},"comments":0,"created_at":"2015-03-23T21:34:58Z","updated_at":"2015-03-25T20:34:42Z","closed_at":"2015-03-25T20:34:42Z","body":"In order to easily parse logs for metrics/aggregation, we want them in JSON format. Perhaps an environment variable could be used to control the behavior as you probably don't want JSON output by default (difficult for development purposes). Seems to be pretty easy to enable it:\r\n\r\nlog.SetFormatter(&log.JSONFormatter{})\r\n\r\nWhatever the default JSON format from logrus is probably fine for now."}}