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

Print request/response logs in a single line #4734

Closed
sarun85 opened this issue Mar 1, 2021 · 1 comment · Fixed by #4745
Closed

Print request/response logs in a single line #4734

sarun85 opened this issue Mar 1, 2021 · 1 comment · Fixed by #4745
Assignees
Milestone

Comments

@sarun85
Copy link

sarun85 commented Mar 1, 2021

As the LoggingFeature is splitting the request data into several lines, it is difficult to filter the logs based on the thread id. Is it possible to provide an option in the LoggingFeature to pass in a delimiter as an optional parameter that will replace the line terminator "\n". This will help our project to filter the logs of a particular request from the log file using a script.

Thanks.

@senivam
Copy link
Contributor

senivam commented Mar 1, 2021

Hi @sarun85, for now line separator is hard-codded into LoggingInterceptor, but I think it won't be a big trouble to make i parametrized in future releases.

@senivam senivam self-assigned this Mar 3, 2021
@senivam senivam linked a pull request Mar 10, 2021 that will close this issue
@senivam senivam added this to the 2.34 milestone Apr 12, 2021
nunomsantos added a commit to nunomsantos/jersey that referenced this issue Mar 14, 2022
Relates to issue eclipse-ee4j#4734 and pull request eclipse-ee4j#4745
nunomsantos added a commit to nunomsantos/jersey that referenced this issue Mar 14, 2022
Relates to issue eclipse-ee4j#4734 and pull request eclipse-ee4j#4745
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants