Package org.jboss.resteasy.setup
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected StringDetermines the name of the console handler.A map where the key is the log level and the value is a collection of logger names.Methods inherited from class org.jboss.resteasy.setup.SnapshotServerSetupTask
nonManagementCleanUp, setup, tearDownMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.as.arquillian.api.ServerSetupTask
setup, tearDown
-
Constructor Details
-
LoggingSetupTask
public LoggingSetupTask()
-
-
Method Details
-
doSetup
protected void doSetup(org.jboss.as.arquillian.container.ManagementClient client, String containerId) throws Exception - Overrides:
doSetupin classSnapshotServerSetupTask- Throws:
Exception
-
getConsoleHandlerName
Determines the name of the console handler. Ifnullis returned the console handler will not be changed.- Returns:
- the console handler name or
nullto configure nothing
-
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
-