Package psiprobe.tools.logging
Class AbstractLogDestination
- java.lang.Object
-
- psiprobe.tools.logging.DefaultAccessor
-
- psiprobe.tools.logging.AbstractLogDestination
-
- All Implemented Interfaces:
LogDestination
- Direct Known Subclasses:
CatalinaLoggerAccessor
,FileLogAccessor
,Jdk14HandlerAccessor
,Log4J2AppenderAccessor
,Log4JAppenderAccessor
,LogbackAppenderAccessor
,TomcatSlf4jLogbackAppenderAccessor
public abstract class AbstractLogDestination extends DefaultAccessor implements LogDestination
The Class AbstractLogDestination.
-
-
Field Summary
-
Fields inherited from class psiprobe.tools.logging.DefaultAccessor
logger
-
-
Constructor Summary
Constructors Constructor Description AbstractLogDestination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getConversionPattern()
Gets the conversion pattern.String
getEncoding()
Gets the encoding of the file.File
getFile()
Gets the file.String
getIndex()
Gets the index.Timestamp
getLastModified()
Gets the last modified.String
getLevel()
Gets the level.long
getSize()
Gets the size.protected File
getStdoutFile()
Gets the stdout file.String[]
getValidLevels()
Gets the valid levels.boolean
isContext()
Checks if is context.boolean
isRoot()
Checks if is root.-
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, getLogType, getName, getTargetClass
-
-
-
-
Method Detail
-
isRoot
public boolean isRoot()
Description copied from interface:LogDestination
Checks if is root.- Specified by:
isRoot
in interfaceLogDestination
- Returns:
- true, if is root
-
isContext
public boolean isContext()
Description copied from interface:LogDestination
Checks if is context.- Specified by:
isContext
in interfaceLogDestination
- Returns:
- true, if is context
-
getIndex
public String getIndex()
Description copied from interface:LogDestination
Gets the index.- Specified by:
getIndex
in interfaceLogDestination
- Returns:
- the index
-
getConversionPattern
public String getConversionPattern()
Description copied from interface:LogDestination
Gets the conversion pattern.- Specified by:
getConversionPattern
in interfaceLogDestination
- Returns:
- the conversion pattern
-
getStdoutFile
protected File getStdoutFile()
Gets the stdout file.- Returns:
- the stdout file
-
getFile
public File getFile()
Description copied from interface:LogDestination
Gets the file.- Specified by:
getFile
in interfaceLogDestination
- Returns:
- the file
-
getSize
public long getSize()
Description copied from interface:LogDestination
Gets the size.- Specified by:
getSize
in interfaceLogDestination
- Returns:
- the size
-
getLastModified
public Timestamp getLastModified()
Description copied from interface:LogDestination
Gets the last modified.- Specified by:
getLastModified
in interfaceLogDestination
- Returns:
- the last modified
-
getLevel
public String getLevel()
Description copied from interface:LogDestination
Gets the level.- Specified by:
getLevel
in interfaceLogDestination
- Returns:
- the level
-
getValidLevels
public String[] getValidLevels()
Description copied from interface:LogDestination
Gets the valid levels.- Specified by:
getValidLevels
in interfaceLogDestination
- Returns:
- the valid levels
-
getEncoding
public String getEncoding()
Description copied from interface:LogDestination
Gets the encoding of the file.- Specified by:
getEncoding
in interfaceLogDestination
- Returns:
- the encoding name
-
-