Class LoggingSetupTask

java.lang.Object
org.jboss.resteasy.setup.SnapshotServerSetupTask
org.jboss.resteasy.setup.LoggingSetupTask
All Implemented Interfaces:
org.jboss.as.arquillian.api.ServerSetupTask

public class LoggingSetupTask extends SnapshotServerSetupTask implements org.jboss.as.arquillian.api.ServerSetupTask
A setup task for configuring loggers for tests.
Author:
James R. Perkins
  • Constructor Details

    • LoggingSetupTask

      public LoggingSetupTask()
  • Method Details

    • doSetup

      protected void doSetup(org.jboss.as.arquillian.container.ManagementClient client, String containerId) throws Exception
      Overrides:
      doSetup in class SnapshotServerSetupTask
      Throws:
      Exception
    • getConsoleHandlerName

      protected String getConsoleHandlerName()
      Determines the name of the console handler. If null is returned the console handler will not be changed.
      Returns:
      the console handler name or null to configure nothing
    • getLogLevels

      protected Map<String,Set<String>> getLogLevels()
      A map where the key is the log level and the value is a collection of logger names. This map is used to create loggers. If the logger already exists it will be updated instead.
      Returns:
      a mapping of levels to loggers