@StampyLibrary(libraryName="stampy-examples") public class Log4jLevelChanger extends java.lang.Object implements Remoteable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LEVEL
The Constant LEVEL.
|
static java.lang.String |
LOGGER
The Constant LOGGER.
|
| Constructor and Description |
|---|
Log4jLevelChanger(java.lang.String loggerName,
org.apache.log4j.Level level)
Instantiates a new log4j level changer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute()
Execute.
|
org.apache.log4j.Level |
getLevel()
Gets the level.
|
java.lang.String |
getLoggerName()
Gets the logger name.
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Sets the properties.
|
public static final java.lang.String LEVEL
public static final java.lang.String LOGGER
public Log4jLevelChanger(java.lang.String loggerName,
org.apache.log4j.Level level)
loggerName - the logger namelevel - the levelpublic void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
throws MissingPropertyException
RemoteablesetProperties in interface Remoteableproperties - the propertiesMissingPropertyException - the missing propery exceptionpublic boolean execute()
throws java.lang.Exception
Remoteableexecute in interface Remoteablejava.lang.Exception - the exceptionpublic org.apache.log4j.Level getLevel()
public java.lang.String getLoggerName()