Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customization of HTTP/JSON output #131

Merged
merged 2 commits into from
Sep 9, 2016
Merged

Conversation

whiskeysierra
Copy link
Collaborator

Fixes #114
@kakawait

Adds public prepare and format methods to the Default- and JsonHttpLogFormatter. Prepare returns a data structure that can be modified (List<String> and Map<String, Object> respectively). The format method renders the corresponding data structure into a string.

The intended use case is to write a custom formatter that has an instance of one of those two and uses it to generate and customize the output.

Willi Schönborn added 2 commits September 9, 2016 20:54
This allows clients to utilize the capabilities of the class while being able to add additional properties.

This fixes #114
@whiskeysierra whiskeysierra merged commit 24a66f1 into master Sep 9, 2016
@whiskeysierra whiskeysierra deleted the feature/custom-format branch September 9, 2016 19:47
@kakawait
Copy link

@whiskeysierra I will check that. But from what I just see I think it will match 100% of my use case!

Thanks for hard working on it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants