public class LoggingJBossASClient extends JBossASClient
| Modifier and Type | Field and Description |
|---|---|
static String |
LOGGER |
static String |
LOGGING |
ADD, ADDRESS, BATCH, BATCH_STEPS, FAILURE_DESCRIPTION, log, NAME, OPERATION, OUTCOME, OUTCOME_SUCCESS, PERSISTENT, READ_ATTRIBUTE, READ_RESOURCE, REMOVE, RESULT, SUBSYSTEM, SYSTEM_PROPERTY, VALUE, WRITE_ATTRIBUTE| Constructor and Description |
|---|
LoggingJBossASClient(org.jboss.as.controller.client.ModelControllerClient client) |
| Modifier and Type | Method and Description |
|---|---|
String |
getLoggerLevel(String loggerName)
Returns the level of the given logger.
|
boolean |
isLogger(String loggerName)
Checks to see if there is already a logger with the given name.
|
void |
setLoggerLevel(String loggerName,
String level)
Sets the logger to the given level.
|
createBatchRequest, createReadAttributeRequest, createReadAttributeRequest, createRequest, createRequest, createWriteAttributeRequest, execute, findNodeInList, getFailureDescription, getModelControllerClient, getResultListAsStrings, getResults, getStringAttribute, getStringAttribute, isSuccess, readResource, readResource, remove, setPossibleExpressionpublic static final String LOGGING
public static final String LOGGER
public LoggingJBossASClient(org.jboss.as.controller.client.ModelControllerClient client)
public boolean isLogger(String loggerName) throws Exception
loggerName - the name to check (this is also known as the category name)Exceptionpublic String getLoggerLevel(String loggerName) throws Exception
loggerName - the name of the logger (this is also known as the category name)Exception - if the log level could not be obtained (typically because the logger doesn't exist)public void setLoggerLevel(String loggerName, String level) throws Exception
loggerName - the logger name (this is also known as the category name)level - the new level of the logger (e.g. DEBUG, INFO, ERROR, etc.)ExceptionCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.