Package org.pentaho.di.core.logging
Class FileLoggingEventListener
- java.lang.Object
-
- org.pentaho.di.core.logging.FileLoggingEventListener
-
- All Implemented Interfaces:
KettleLoggingEventListener
public class FileLoggingEventListener extends Object implements KettleLoggingEventListener
-
-
Constructor Summary
Constructors Constructor Description FileLoggingEventListener(String filename, boolean append)
Log all log lines to the specified fileFileLoggingEventListener(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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
eventAdded(KettleLoggingEvent event)
KettleException
getException()
org.apache.commons.vfs2.FileObject
getFile()
String
getFilename()
OutputStream
getOutputStream()
void
setException(KettleException exception)
void
setFilename(String filename)
void
setOutputStream(OutputStream outputStream)
-
-
-
Constructor Detail
-
FileLoggingEventListener
public FileLoggingEventListener(String filename, boolean append) throws KettleException
Log all log lines to the specified file- Parameters:
filename
-append
-- Throws:
KettleException
-
FileLoggingEventListener
public FileLoggingEventListener(String logChannelId, String filename, boolean append) throws KettleException
Log only lines belonging to the specified log channel ID or one of it's children (grandchildren) to the specified file.- Parameters:
logChannelId
-filename
-append
-- Throws:
KettleException
-
-
Method Detail
-
getFile
public org.apache.commons.vfs2.FileObject getFile()
-
eventAdded
public void eventAdded(KettleLoggingEvent event)
- Specified by:
eventAdded
in interfaceKettleLoggingEventListener
-
close
public void close() throws KettleException
- Throws:
KettleException
-
getException
public KettleException getException()
-
setException
public void setException(KettleException exception)
-
getFilename
public String getFilename()
-
setFilename
public void setFilename(String filename)
-
getOutputStream
public OutputStream getOutputStream()
-
setOutputStream
public void setOutputStream(OutputStream outputStream)
-
-