{"action":"created","issue":{"url":"https://api.github.com/repos/Sirupsen/logrus/issues/329","repository_url":"https://api.github.com/repos/Sirupsen/logrus","labels_url":"https://api.github.com/repos/Sirupsen/logrus/issues/329/labels{/name}","comments_url":"https://api.github.com/repos/Sirupsen/logrus/issues/329/comments","events_url":"https://api.github.com/repos/Sirupsen/logrus/issues/329/events","html_url":"https://github.com/Sirupsen/logrus/issues/329","id":135049642,"number":329,"title":"Preserve fields order in logger output","user":{"login":"jrosiek","id":7487692,"avatar_url":"https://avatars.githubusercontent.com/u/7487692?v=3","gravatar_id":"","url":"https://api.github.com/users/jrosiek","html_url":"https://github.com/jrosiek","followers_url":"https://api.github.com/users/jrosiek/followers","following_url":"https://api.github.com/users/jrosiek/following{/other_user}","gists_url":"https://api.github.com/users/jrosiek/gists{/gist_id}","starred_url":"https://api.github.com/users/jrosiek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrosiek/subscriptions","organizations_url":"https://api.github.com/users/jrosiek/orgs","repos_url":"https://api.github.com/users/jrosiek/repos","events_url":"https://api.github.com/users/jrosiek/events{/privacy}","received_events_url":"https://api.github.com/users/jrosiek/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-20T08:34:22Z","updated_at":"2016-04-16T10:50:45Z","closed_at":"2016-04-16T07:33:02Z","body":"It would be great if the fields appear in the order the user specified. This way we could put more important/shorter fields at the beginning of log message."},"comment":{"url":"https://api.github.com/repos/Sirupsen/logrus/issues/comments/210788605","html_url":"https://github.com/Sirupsen/logrus/issues/329#issuecomment-210788605","issue_url":"https://api.github.com/repos/Sirupsen/logrus/issues/329","id":210788605,"user":{"login":"ear","id":2104122,"avatar_url":"https://avatars.githubusercontent.com/u/2104122?v=3","gravatar_id":"","url":"https://api.github.com/users/ear","html_url":"https://github.com/ear","followers_url":"https://api.github.com/users/ear/followers","following_url":"https://api.github.com/users/ear/following{/other_user}","gists_url":"https://api.github.com/users/ear/gists{/gist_id}","starred_url":"https://api.github.com/users/ear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ear/subscriptions","organizations_url":"https://api.github.com/users/ear/orgs","repos_url":"https://api.github.com/users/ear/repos","events_url":"https://api.github.com/users/ear/events{/privacy}","received_events_url":"https://api.github.com/users/ear/received_events","type":"User","site_admin":false},"created_at":"2016-04-16T10:50:45Z","updated_at":"2016-04-16T10:50:45Z","body":"@aybabtme could you elaborate a bit? The [Entry type](https://github.com/Sirupsen/logrus/blob/master/entry.go#L21-L22) passed to the formatter you linked to has a `Data` field of type [Fields](https://github.com/Sirupsen/logrus/blob/master/logrus.go#L9-L10) that is a `map` which inherently does not preserve ordering of the pairs added to it with calls to `WithField` and `WithFields`. How are you suggesting to implement this in the formatter? Thank you in advance!"}}