Quantcast
Channel: HowToDoInJava
Viewing all articles
Browse latest Browse all 35

Jersey Logging Request and Response Entities using Filter

$
0
0

By default, Jersey uses JUL for logging – and does not print request/response entity bodies in logs. To print entity content, you must create your own LoggingFiler, and register it in place of default org.glassfish.jersey.filter.LoggingFilter. In this example, I am creating one such basic CustomLoggingFilter which extends org.glassfish.jersey.filter.LoggingFilter and implements ContainerRequestFilter and ContainerResponseFilter interfaces so […]

The post Jersey Logging Request and Response Entities using Filter appeared first on HowToDoInJava.


Viewing all articles
Browse latest Browse all 35

Trending Articles