| logging.PluginFileAppender
PluginFileAppender | public class PluginFileAppender extends RollingFileAppender (Code) | | PluginFileAppender
This class is a custom Log4J appender that sends Log4J events to
the Eclipse plug-in state location. It extends the RollingFileAppender class.
author: Manoel Marques |
Method Summary | |
public void | activateOptions() Finishes instance initialization. | public void | setFile(String file) Sets the file name.Translate it before setting. | public void | setFile(String fileName, boolean append, boolean bufferedIO, int bufferSize) Set file options and opens it, leaving ready to write. | void | setStateLocation(IPath stateLocation) Sets the state location. |
PluginFileAppender | public PluginFileAppender()(Code) | | Creates a new PluginFileAppender.
|
PluginFileAppender | public PluginFileAppender(Layout layout, IPath stateLocation)(Code) | | Creates a new PluginFileAppender.
Parameters: layout - layout instance. Parameters: stateLocation - IPath containing the plug-in state location |
PluginFileAppender | public PluginFileAppender(Layout layout, IPath stateLocation, String file, boolean append) throws IOException(Code) | | Creates a new PluginFileAppender.
Parameters: layout - layout instance. Parameters: stateLocation - IPath containing the plug-in state location Parameters: file - file name Parameters: append - true if file is to be appended |
PluginFileAppender | public PluginFileAppender(Layout layout, IPath stateLocation, String file) throws IOException(Code) | | Creates a new PluginFileAppender.
Parameters: layout - layout instance. Parameters: stateLocation - IPath containing the plug-in state location Parameters: file - file name |
activateOptions | public void activateOptions()(Code) | | Finishes instance initialization. If state location was not set, set activate as
pending and does nothing.
|
setFile | public void setFile(String file)(Code) | | Sets the file name.Translate it before setting.
Parameters: file - file name |
setFile | public void setFile(String fileName, boolean append, boolean bufferedIO, int bufferSize) throws IOException(Code) | | Set file options and opens it, leaving ready to write.
Parameters: file - file name Parameters: append - true if file is to be appended Parameters: bufferedIO - true if file is to buffered Parameters: bufferSize - buffer size throws: IOException - - IO Error happend or the state location was not set |
setStateLocation | void setStateLocation(IPath stateLocation)(Code) | | Sets the state location. If activateOptions call is pending, translate the file name
and call activateOptions
Parameters: stateLocation - IPath containing the plug-in state location |
|
|