Package psiprobe.tools.logging.jdk
Class Jdk14HandlerAccessor
- java.lang.Object
-
- psiprobe.tools.logging.DefaultAccessor
-
- psiprobe.tools.logging.AbstractLogDestination
-
- psiprobe.tools.logging.jdk.Jdk14HandlerAccessor
-
- All Implemented Interfaces:
LogDestination
- Direct Known Subclasses:
Jdk14FileHandlerAccessor
,JuliHandlerAccessor
public class Jdk14HandlerAccessor extends AbstractLogDestination
The Class Jdk14HandlerAccessor.
-
-
Field Summary
Fields Modifier and Type Field Description private String
index
The index.private Jdk14LoggerAccessor
loggerAccessor
The logger accessor.-
Fields inherited from class psiprobe.tools.logging.DefaultAccessor
logger
-
-
Constructor Summary
Constructors Constructor Description Jdk14HandlerAccessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getIndex()
Gets the index.String
getLevel()
Gets the level.Jdk14LoggerAccessor
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
setIndex(String index)
Sets the index.void
setLevel(String newLevelStr)
Sets the level.void
setLoggerAccessor(Jdk14LoggerAccessor loggerAccessor)
Sets the logger accessor.-
Methods inherited from class psiprobe.tools.logging.AbstractLogDestination
getConversionPattern, getEncoding, getFile, 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 Jdk14LoggerAccessor loggerAccessor
The logger accessor.
-
index
private String index
The index.
-
-
Method Detail
-
getLoggerAccessor
public Jdk14LoggerAccessor getLoggerAccessor()
Gets the logger accessor.- Returns:
- the logger accessor
-
setLoggerAccessor
public void setLoggerAccessor(Jdk14LoggerAccessor 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
-
getIndex
public String getIndex()
Description copied from interface:LogDestination
Gets the index.- Specified by:
getIndex
in interfaceLogDestination
- Overrides:
getIndex
in classAbstractLogDestination
- Returns:
- the index
-
setIndex
public void setIndex(String index)
Sets the index.- Parameters:
index
- the new index
-
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
-
getLevel
public String getLevel()
Description copied from interface:LogDestination
Gets the level.- Specified by:
getLevel
in interfaceLogDestination
- Overrides:
getLevel
in classAbstractLogDestination
- Returns:
- the level
-
setLevel
public void setLevel(String newLevelStr)
Sets the level.- Parameters:
newLevelStr
- the new 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
-
-