Implement logging in RESTEasy
3.7. RESTEasyLogging RESTEasy supports logging via java.util.logging, Log4j, or Slf4j. How it picks which framework to delegate to is expressed in the following algorithm: If log4j is in the application's classpath, log4j will be used If slf4j is in the application's classpath, slf4j will be used java.util.logging is the default if neither log4j or slf4j is in the classpath If the servlet context param resteasy.logger.type is set to JUL, LOG4J, or SLF4J will override this default behavior The logging categories are still a work in progress, but the initial set should make it easier to trouleshoot issues. Currently, the framework has defined the following log categories: Table 3.2. Category Function org.jboss.resteasy.core Logs all activity by the core RESTEasy implementation org.jboss.resteasy.plugins.providers Logs all activity by RESTEasy entity providers org.jboss.resteasy.plugins.server Logs all activity by the RESTEasy server implementation. org.jboss.resteasy.specimpl Logs all activity by JAX-RS implementing classes org.jboss.resteasy.mock Logs all activity by the RESTEasy mock framework