public class FileLoggingEventListener extends Object implements KettleLoggingEventListener
Constructor and Description |
---|
FileLoggingEventListener(String filename,
boolean append)
Log all log lines to the specified file
|
FileLoggingEventListener(String logChannelId,
String filename,
boolean append)
Log only lines belonging to the specified log channel ID or one of it's children (grandchildren) to the specified
file.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
eventAdded(KettleLoggingEvent event) |
KettleException |
getException() |
org.apache.commons.vfs.FileObject |
getFile() |
String |
getFilename() |
OutputStream |
getOutputStream() |
void |
setException(KettleException exception) |
void |
setFilename(String filename) |
void |
setOutputStream(OutputStream outputStream) |
public FileLoggingEventListener(String filename, boolean append) throws KettleException
filename
- append
- KettleException
public FileLoggingEventListener(String logChannelId, String filename, boolean append) throws KettleException
logChannelId
- filename
- append
- KettleException
public org.apache.commons.vfs.FileObject getFile()
public void eventAdded(KettleLoggingEvent event)
eventAdded
in interface KettleLoggingEventListener
public void close() throws KettleException
KettleException
public KettleException getException()
public void setException(KettleException exception)
public String getFilename()
public void setFilename(String filename)
public OutputStream getOutputStream()
public void setOutputStream(OutputStream outputStream)