Package psiprobe.tools.logging.log4j
Class Log4JAppenderAccessor
- java.lang.Object
-
- psiprobe.tools.logging.DefaultAccessor
-
- psiprobe.tools.logging.AbstractLogDestination
-
- psiprobe.tools.logging.log4j.Log4JAppenderAccessor
-
- All Implemented Interfaces:
LogDestination
public class Log4JAppenderAccessor extends AbstractLogDestination
The Class Log4JAppenderAccessor.
-
-
Field Summary
Fields Modifier and Type Field Description private Log4JLoggerAccessor
loggerAccessor
The logger accessor.-
Fields inherited from class psiprobe.tools.logging.DefaultAccessor
logger
-
-
Constructor Summary
Constructors Constructor Description Log4JAppenderAccessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getConversionPattern()
Gets the conversion pattern.File
getFile()
Gets the file.String
getIndex()
Gets the index.String
getLevel()
Gets the level.Log4JLoggerAccessor
getLoggerAccessor()
Gets the logger accessor.String
getLogType()
Type of the log, e.g.String
getName()
Gets the name.String[]
getValidLevels()
Gets the valid levels.boolean
isContext()
Checks if is context.boolean
isRoot()
Checks if is root.void
setLoggerAccessor(Log4JLoggerAccessor loggerAccessor)
Sets the logger accessor.-
Methods inherited from class psiprobe.tools.logging.AbstractLogDestination
getEncoding, getLastModified, getSize, getStdoutFile
-
Methods inherited from class psiprobe.tools.logging.DefaultAccessor
getApplication, getProperty, getProperty, getTarget, getTargetClass, invokeMethod, setApplication, setTarget
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface psiprobe.tools.logging.LogDestination
getApplication, getTargetClass
-
-
-
-
Field Detail
-
loggerAccessor
private Log4JLoggerAccessor loggerAccessor
The logger accessor.
-
-
Method Detail
-
getLoggerAccessor
public Log4JLoggerAccessor getLoggerAccessor()
Gets the logger accessor.- Returns:
- the logger accessor
-
setLoggerAccessor
public void setLoggerAccessor(Log4JLoggerAccessor loggerAccessor)
Sets the logger accessor.- Parameters:
loggerAccessor
- the new logger accessor
-
isContext
public boolean isContext()
Description copied from interface:LogDestination
Checks if is context.- Specified by:
isContext
in interfaceLogDestination
- Overrides:
isContext
in classAbstractLogDestination
- Returns:
- true, if is context
-
isRoot
public boolean isRoot()
Description copied from interface:LogDestination
Checks if is root.- Specified by:
isRoot
in interfaceLogDestination
- Overrides:
isRoot
in classAbstractLogDestination
- Returns:
- true, if is root
-
getName
public String getName()
Description copied from interface:LogDestination
Gets the name.- Returns:
- the name
-
getLogType
public String getLogType()
Description copied from interface:LogDestination
Type of the log, e.g. "log4j", "jdk", "commons-" etc.- Returns:
- the class of the log
-
getIndex
public String getIndex()
Description copied from interface:LogDestination
Gets the index.- Specified by:
getIndex
in interfaceLogDestination
- Overrides:
getIndex
in classAbstractLogDestination
- Returns:
- the index
-
getConversionPattern
public String getConversionPattern()
Description copied from interface:LogDestination
Gets the conversion pattern.- Specified by:
getConversionPattern
in interfaceLogDestination
- Overrides:
getConversionPattern
in classAbstractLogDestination
- Returns:
- the conversion pattern
-
getFile
public File getFile()
Description copied from interface:LogDestination
Gets the file.- Specified by:
getFile
in interfaceLogDestination
- Overrides:
getFile
in classAbstractLogDestination
- Returns:
- the file
-
getLevel
public String getLevel()
Description copied from interface:LogDestination
Gets the level.- Specified by:
getLevel
in interfaceLogDestination
- Overrides:
getLevel
in classAbstractLogDestination
- Returns:
- the level
-
getValidLevels
public String[] getValidLevels()
Description copied from interface:LogDestination
Gets the valid levels.- Specified by:
getValidLevels
in interfaceLogDestination
- Overrides:
getValidLevels
in classAbstractLogDestination
- Returns:
- the valid levels
-
-