public class LogChannelFileWriter extends Object
| Constructor and Description | 
|---|
LogChannelFileWriter(String logChannelId,
                    org.apache.commons.vfs2.FileObject logFile,
                    boolean appending)
Create a new log channel file writer 
 | 
LogChannelFileWriter(String logChannelId,
                    org.apache.commons.vfs2.FileObject logFile,
                    boolean appending,
                    int pollingInterval)
Create a new log channel file writer 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
flush()  | 
org.pentaho.di.core.exception.KettleException | 
getException()  | 
String | 
getLogChannelId()  | 
org.apache.commons.vfs2.FileObject | 
getLogFile()  | 
int | 
getPollingInterval()  | 
boolean | 
isAppending()  | 
void | 
setAppending(boolean appending)  | 
void | 
setLogChannelId(String logChannelId)  | 
void | 
setLogFile(org.apache.commons.vfs2.FileObject logFile)  | 
void | 
setPollingInterval(int pollingInterval)  | 
void | 
startLogging()
Start the logging thread which will write log data from the specified log channel to the log file. 
 | 
void | 
stopLogging()  | 
public LogChannelFileWriter(String logChannelId, org.apache.commons.vfs2.FileObject logFile, boolean appending, int pollingInterval) throws org.pentaho.di.core.exception.KettleException
logChannelId - The log channel (+children) to write to the log filelogFile - The logging file to write toappending - set to true if you want to append to an existing filepollingInterval - The polling interval in milliseconds.org.pentaho.di.core.exception.KettleException - in case the specified log file can't be created.public LogChannelFileWriter(String logChannelId, org.apache.commons.vfs2.FileObject logFile, boolean appending) throws org.pentaho.di.core.exception.KettleException
logChannelId - The log channel (+children) to write to the log filelogFile - The logging file to write toappending - set to true if you want to append to an existing fileorg.pentaho.di.core.exception.KettleException - in case the specified log file can't be created.public void startLogging()
public void flush()
public void stopLogging()
public org.pentaho.di.core.exception.KettleException getException()
public String getLogChannelId()
public void setLogChannelId(String logChannelId)
logChannelId - the logChannelId to setpublic org.apache.commons.vfs2.FileObject getLogFile()
public void setLogFile(org.apache.commons.vfs2.FileObject logFile)
logFile - the logFile to setpublic boolean isAppending()
public void setAppending(boolean appending)
appending - the appending to setpublic int getPollingInterval()
public void setPollingInterval(int pollingInterval)
pollingInterval - the pollingInterval to set