Package psiprobe.tools.logging
Class FileLogAccessor
- java.lang.Object
-
- psiprobe.tools.logging.DefaultAccessor
-
- psiprobe.tools.logging.AbstractLogDestination
-
- psiprobe.tools.logging.FileLogAccessor
-
- All Implemented Interfaces:
LogDestination
public class FileLogAccessor extends AbstractLogDestination
The Class FileLogAccessor.
-
-
Constructor Summary
Constructors Constructor Description FileLogAccessor()
-
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
getLogType()
Type of the log, e.g.String
getName()
Gets the name.String
getTargetClass()
Gets the target class.void
setFile(File file)
Sets the file.void
setName(String name)
Sets the name.-
Methods inherited from class psiprobe.tools.logging.AbstractLogDestination
getEncoding, getIndex, getLastModified, getLevel, getSize, getStdoutFile, getValidLevels, isContext, isRoot
-
Methods inherited from class psiprobe.tools.logging.DefaultAccessor
getApplication, getProperty, getProperty, getTarget, 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
-
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:LogDestination
Gets the name.- Returns:
- the name
-
setName
public void setName(String name)
Sets the name.- Parameters:
name
- the new name
-
getTargetClass
public String getTargetClass()
Description copied from class:DefaultAccessor
Gets the target class.- Specified by:
getTargetClass
in interfaceLogDestination
- Overrides:
getTargetClass
in classDefaultAccessor
- Returns:
- the target class
-
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
-
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
-
setFile
public void setFile(File file)
Sets the file.- Parameters:
file
- the new file
-
-