Package psiprobe.tools.logging.log4j
Class Log4JLoggerAccessor
- java.lang.Object
-
- psiprobe.tools.logging.DefaultAccessor
-
- psiprobe.tools.logging.log4j.Log4JLoggerAccessor
-
public class Log4JLoggerAccessor extends DefaultAccessor
The Class Log4JLoggerAccessor.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
context
The context.-
Fields inherited from class psiprobe.tools.logging.DefaultAccessor
logger
-
-
Constructor Summary
Constructors Constructor Description Log4JLoggerAccessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Log4JAppenderAccessor
getAppender(String name)
Gets the appender.List<Log4JAppenderAccessor>
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.private Log4JAppenderAccessor
wrapAppender(Object appender)
Wrap appender.-
Methods inherited from class psiprobe.tools.logging.DefaultAccessor
getApplication, getProperty, getProperty, getTarget, getTargetClass, invokeMethod, setApplication, setTarget
-
-
-
-
Method Detail
-
getAppenders
public List<Log4JAppenderAccessor> getAppenders()
Gets the appenders.- Returns:
- the appenders
-
getAppender
public Log4JAppenderAccessor getAppender(String name)
Gets the appender.- Parameters:
name
- the name- Returns:
- the appender
-
isContext
public boolean isContext()
Checks if is context.- Returns:
- true, if is context
-
setContext
public void setContext(boolean context)
Sets the context.- Parameters:
context
- the new context
-
isRoot
public boolean isRoot()
Checks if is root.- Returns:
- true, if is root
-
getName
public String getName()
Gets the name.- Returns:
- the name
-
getLevel
public String getLevel()
Gets the level.- Returns:
- the level
-
setLevel
public void setLevel(String newLevelStr)
Sets the level.- Parameters:
newLevelStr
- the new level
-
wrapAppender
private Log4JAppenderAccessor wrapAppender(Object appender)
Wrap appender.- Parameters:
appender
- the appender- Returns:
- the log4 j appender accessor
-
-