Since Jersey 2.23 LoggingFilter is deprecated, I'm trying to get it working
with the new LoggingFeature of Jersey but can't figure it out.
environment.jersey().register(new
LoggingFeature(Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME),
LoggingFeature.Verbosity.PAYLOAD_ANY));
environment.jersey().enable("LoggingFeature");
System.out.println(environment.jersey().getResourceConfig().isEnabled(LoggingFeature.class));
Sources:
https://jersey.java.net/documentation/latest/logging_chapter.html#logging
http://stackoverflow.com/questions/17213568/how-to-log-json-responses-in-dropwizard-jersey
I'm using Dropwizard 1.0.0-rc5 + Jersey 2.23
--
You received this message because you are subscribed to the Google Groups
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.