public class Log4J2LoggerConfigAccessor extends DefaultAccessor
logger| Constructor and Description |
|---|
Log4J2LoggerConfigAccessor() |
| Modifier and Type | Method and Description |
|---|---|
Log4J2AppenderAccessor |
getAppender(String name)
Gets the appender.
|
List<Log4J2AppenderAccessor> |
getAppenders()
Gets the appenders.
|
String |
getLevel()
Gets the level.
|
String |
getName()
Gets the name.
|
boolean |
isContext()
Checks if is context.
|
boolean |
isRoot()
Checks if is root.
|
void |
setContext(boolean context)
Sets the context.
|
void |
setLevel(String newLevelStr)
Sets the level.
|
void |
setLoggerContext(Log4J2LoggerContextAccessor loggerContext)
Sets the logger context.
|
void |
setTarget(Object target)
Sets the target.
|
getApplication, getProperty, getProperty, getTarget, getTargetClass, invokeMethod, setApplicationpublic void setTarget(Object target)
setTarget in class DefaultAccessortarget - the new targetpublic List<Log4J2AppenderAccessor> getAppenders()
public Log4J2AppenderAccessor getAppender(String name)
name - the namepublic boolean isContext()
public void setContext(boolean context)
context - the new contextpublic void setLoggerContext(Log4J2LoggerContextAccessor loggerContext)
loggerContext - the new logger contextpublic boolean isRoot()
public String getName()
public String getLevel()
public void setLevel(String newLevelStr)
newLevelStr - the new levelCopyright © 2009–2020 psi-probe. All rights reserved.