public class LogChannelFileWriter extends Object
Modifier and Type | Field and Description |
---|---|
protected OutputStream |
logFileOutputStream |
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() |
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() |
protected OutputStream logFileOutputStream
public LogChannelFileWriter(String logChannelId, org.apache.commons.vfs2.FileObject logFile, boolean appending, int pollingInterval) throws 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.KettleException
- in case the specified log file can't be created.public LogChannelFileWriter(String logChannelId, org.apache.commons.vfs2.FileObject logFile, boolean appending) throws 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 fileKettleException
- in case the specified log file can't be created.public void startLogging()
public void flush()
public void stopLogging()
public 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 setCopyright © 2018 Hitachi Vantara. All rights reserved.