|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.di.core.logging.LogChannelFileWriter
public class LogChannelFileWriter
This class takes care of polling the central log store for new log messages belonging to a certain log channel ID (and children). The log lines will be written to a logging file.
| Constructor Summary | |
|---|---|
LogChannelFileWriter(String logChannelId,
org.apache.commons.vfs.FileObject logFile,
boolean appending)
Create a new log channel file writer |
|
LogChannelFileWriter(String logChannelId,
org.apache.commons.vfs.FileObject logFile,
boolean appending,
int pollingInterval)
Create a new log channel file writer |
|
| Method Summary | |
|---|---|
KettleException |
getException()
|
String |
getLogChannelId()
|
org.apache.commons.vfs.FileObject |
getLogFile()
|
int |
getPollingInterval()
|
boolean |
isAppending()
|
void |
setAppending(boolean appending)
|
void |
setLogChannelId(String logChannelId)
|
void |
setLogFile(org.apache.commons.vfs.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()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogChannelFileWriter(String logChannelId,
org.apache.commons.vfs.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.vfs.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 file
KettleException - in case the specified log file can't be created.| Method Detail |
|---|
public void startLogging()
public void stopLogging()
public KettleException getException()
public String getLogChannelId()
public void setLogChannelId(String logChannelId)
logChannelId - the logChannelId to setpublic org.apache.commons.vfs.FileObject getLogFile()
public void setLogFile(org.apache.commons.vfs.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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||