Package org.pentaho.dm.commons
Class LogAdapter
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- java.io.PrintStream
-
- org.pentaho.dm.commons.LogAdapter
-
- All Implemented Interfaces:
Closeable,Flushable,Serializable,Appendable,AutoCloseable,org.pentaho.di.core.logging.LogChannelInterface,weka.gui.Logger
public class LogAdapter extends PrintStream implements Serializable, weka.gui.Logger, org.pentaho.di.core.logging.LogChannelInterface
Adapts Kettle logging to Weka's Logger interface and PrintStream.- Version:
- $Revision: 1.0 $
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.io.FilterOutputStream
out
-
-
Constructor Summary
Constructors Constructor Description LogAdapter(org.pentaho.di.core.logging.LogChannelInterface log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContainerObjectId()StringgetFilter()StringgetLogChannelId()org.pentaho.di.core.logging.LogLevelgetLogLevel()booleanisBasic()booleanisDebug()booleanisDetailed()booleanisError()booleanisForcingSeparateLogging()booleanisGatheringMetrics()booleanisRowLevel()voidlogBasic(String arg0)voidlogBasic(String arg0, Object... arg1)voidlogDebug(String arg0)voidlogDebug(String arg0, Object... arg1)voidlogDetailed(String arg0)voidlogDetailed(String arg0, Object... arg1)voidlogError(String arg0)voidlogError(String arg0, Object... arg1)voidlogError(String arg0, Throwable arg1)voidlogMessage(String message)Weka Logger methodvoidlogMinimal(String arg0)voidlogMinimal(String arg0, Object... arg1)voidlogRowlevel(String arg0)voidlogRowlevel(String arg0, Object... arg1)voidprint(Object obj)PrintStream methodvoidprint(String string)PrintStream methodvoidprintln(Object obj)PrintStream methodvoidprintln(String string)PrintStream methodvoidsetContainerObjectId(String arg0)voidsetFilter(String filter)voidsetForcingSeparateLogging(boolean forcingSeparateLogging)voidsetGatheringMetrics(boolean gatheringMetrics)voidsetLogLevel(org.pentaho.di.core.logging.LogLevel arg0)voidsnap(org.pentaho.di.core.logging.MetricsInterface metric, long... value)voidsnap(org.pentaho.di.core.logging.MetricsInterface metric, String subject, long... value)voidstatusMessage(String message)Weka Logger method-
Methods inherited from class java.io.PrintStream
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, setError, write, write
-
Methods inherited from class java.io.FilterOutputStream
write
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Method Detail
-
statusMessage
public void statusMessage(String message)
Weka Logger method- Specified by:
statusMessagein interfaceweka.gui.Logger- Parameters:
message- log message for the status area
-
logMessage
public void logMessage(String message)
Weka Logger method- Specified by:
logMessagein interfaceweka.gui.Logger- Parameters:
message- log message for the log area
-
println
public void println(String string)
PrintStream method- Overrides:
printlnin classPrintStream- Parameters:
string- the log message
-
println
public void println(Object obj)
PrintStream method- Overrides:
printlnin classPrintStream- Parameters:
obj- the log message
-
print
public void print(String string)
PrintStream method- Overrides:
printin classPrintStream- Parameters:
string- the log message
-
print
public void print(Object obj)
PrintStream method- Overrides:
printin classPrintStream- Parameters:
obj- the log message
-
getContainerObjectId
public String getContainerObjectId()
- Specified by:
getContainerObjectIdin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
getLogChannelId
public String getLogChannelId()
- Specified by:
getLogChannelIdin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
getLogLevel
public org.pentaho.di.core.logging.LogLevel getLogLevel()
- Specified by:
getLogLevelin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
isBasic
public boolean isBasic()
- Specified by:
isBasicin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
isDebug
public boolean isDebug()
- Specified by:
isDebugin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
isDetailed
public boolean isDetailed()
- Specified by:
isDetailedin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
isError
public boolean isError()
- Specified by:
isErrorin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
isRowLevel
public boolean isRowLevel()
- Specified by:
isRowLevelin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logBasic
public void logBasic(String arg0)
- Specified by:
logBasicin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logBasic
public void logBasic(String arg0, Object... arg1)
- Specified by:
logBasicin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logDebug
public void logDebug(String arg0)
- Specified by:
logDebugin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logDebug
public void logDebug(String arg0, Object... arg1)
- Specified by:
logDebugin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logDetailed
public void logDetailed(String arg0)
- Specified by:
logDetailedin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logDetailed
public void logDetailed(String arg0, Object... arg1)
- Specified by:
logDetailedin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logError
public void logError(String arg0)
- Specified by:
logErrorin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logError
public void logError(String arg0, Throwable arg1)
- Specified by:
logErrorin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logError
public void logError(String arg0, Object... arg1)
- Specified by:
logErrorin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logMinimal
public void logMinimal(String arg0)
- Specified by:
logMinimalin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logMinimal
public void logMinimal(String arg0, Object... arg1)
- Specified by:
logMinimalin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logRowlevel
public void logRowlevel(String arg0)
- Specified by:
logRowlevelin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logRowlevel
public void logRowlevel(String arg0, Object... arg1)
- Specified by:
logRowlevelin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
setContainerObjectId
public void setContainerObjectId(String arg0)
- Specified by:
setContainerObjectIdin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
setLogLevel
public void setLogLevel(org.pentaho.di.core.logging.LogLevel arg0)
- Specified by:
setLogLevelin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
snap
public void snap(org.pentaho.di.core.logging.MetricsInterface metric, long... value)- Specified by:
snapin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
snap
public void snap(org.pentaho.di.core.logging.MetricsInterface metric, String subject, long... value)- Specified by:
snapin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
isForcingSeparateLogging
public boolean isForcingSeparateLogging()
- Specified by:
isForcingSeparateLoggingin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
setForcingSeparateLogging
public void setForcingSeparateLogging(boolean forcingSeparateLogging)
- Specified by:
setForcingSeparateLoggingin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
isGatheringMetrics
public boolean isGatheringMetrics()
- Specified by:
isGatheringMetricsin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
setGatheringMetrics
public void setGatheringMetrics(boolean gatheringMetrics)
- Specified by:
setGatheringMetricsin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
getFilter
public String getFilter()
- Specified by:
getFilterin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
setFilter
public void setFilter(String filter)
- Specified by:
setFilterin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
-