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:
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.pentaho.di.core.logging.LogLevelbooleanisBasic()booleanisDebug()booleanbooleanisError()booleanbooleanbooleanvoidvoidvoidvoidvoidlogDetailed(String arg0) voidlogDetailed(String arg0, Object... arg1) voidvoidvoidvoidlogMessage(String message) Weka Logger methodvoidlogMinimal(String arg0) voidlogMinimal(String arg0, Object... arg1) voidlogRowlevel(String arg0) voidlogRowlevel(String arg0, Object... arg1) voidPrintStream methodvoidPrintStream methodvoidPrintStream methodvoidPrintStream methodvoidsetContainerObjectId(String arg0) voidvoidsetForcingSeparateLogging(boolean forcingSeparateLogging) voidsetGatheringMetrics(boolean gatheringMetrics) voidsetLogLevel(org.pentaho.di.core.logging.LogLevel arg0) voidsnap(org.pentaho.di.core.logging.MetricsInterface metric, long... value) voidvoidstatusMessage(String message) Weka Logger methodMethods 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, write, writeBytesMethods inherited from class java.io.OutputStream
nullOutputStreamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.pentaho.di.core.logging.LogChannelInterface
getHooks, setHooks
-
Constructor Details
-
LogAdapter
public LogAdapter(org.pentaho.di.core.logging.LogChannelInterface log)
-
-
Method Details
-
statusMessage
Weka Logger method- Specified by:
statusMessagein interfaceweka.gui.Logger- Parameters:
message- log message for the status area
-
logMessage
Weka Logger method- Specified by:
logMessagein interfaceweka.gui.Logger- Parameters:
message- log message for the log area
-
println
PrintStream method- Overrides:
printlnin classPrintStream- Parameters:
string- the log message
-
println
PrintStream method- Overrides:
printlnin classPrintStream- Parameters:
obj- the log message
-
print
PrintStream method- Overrides:
printin classPrintStream- Parameters:
string- the log message
-
print
PrintStream method- Overrides:
printin classPrintStream- Parameters:
obj- the log message
-
getContainerObjectId
- Specified by:
getContainerObjectIdin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
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
- Specified by:
logBasicin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logBasic
- Specified by:
logBasicin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logDebug
- Specified by:
logDebugin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logDebug
- Specified by:
logDebugin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logDetailed
- Specified by:
logDetailedin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logDetailed
- Specified by:
logDetailedin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logError
- Specified by:
logErrorin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logError
- Specified by:
logErrorin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logError
- Specified by:
logErrorin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logMinimal
- Specified by:
logMinimalin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logMinimal
- Specified by:
logMinimalin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logRowlevel
- Specified by:
logRowlevelin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logRowlevel
- Specified by:
logRowlevelin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
setContainerObjectId
- 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
- Specified by:
getFilterin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
setFilter
- Specified by:
setFilterin interfaceorg.pentaho.di.core.logging.LogChannelInterface
-