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
-
Method Summary
Modifier and TypeMethodDescriptionorg.pentaho.di.core.logging.LogLevel
boolean
isBasic()
boolean
isDebug()
boolean
boolean
isError()
boolean
boolean
boolean
void
void
void
void
void
logDetailed
(String arg0) void
logDetailed
(String arg0, Object... arg1) void
void
void
void
logMessage
(String message) Weka Logger methodvoid
logMinimal
(String arg0) void
logMinimal
(String arg0, Object... arg1) void
logRowlevel
(String arg0) void
logRowlevel
(String arg0, Object... arg1) void
PrintStream methodvoid
PrintStream methodvoid
PrintStream methodvoid
PrintStream methodvoid
setContainerObjectId
(String arg0) void
void
setForcingSeparateLogging
(boolean forcingSeparateLogging) void
setGatheringMetrics
(boolean gatheringMetrics) void
setLogLevel
(org.pentaho.di.core.logging.LogLevel arg0) void
snap
(org.pentaho.di.core.logging.MetricsInterface metric, long... value) void
void
statusMessage
(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, writeBytes
Methods inherited from class java.io.OutputStream
nullOutputStream
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
statusMessage
in interfaceweka.gui.Logger
- Parameters:
message
- log message for the status area
-
logMessage
Weka Logger method- Specified by:
logMessage
in interfaceweka.gui.Logger
- Parameters:
message
- log message for the log area
-
println
PrintStream method- Overrides:
println
in classPrintStream
- Parameters:
string
- the log message
-
println
PrintStream method- Overrides:
println
in classPrintStream
- Parameters:
obj
- the log message
-
print
PrintStream method- Overrides:
print
in classPrintStream
- Parameters:
string
- the log message
-
print
PrintStream method- Overrides:
print
in classPrintStream
- Parameters:
obj
- the log message
-
getContainerObjectId
- Specified by:
getContainerObjectId
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
getLogChannelId
- Specified by:
getLogChannelId
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
getLogLevel
public org.pentaho.di.core.logging.LogLevel getLogLevel()- Specified by:
getLogLevel
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
isBasic
public boolean isBasic()- Specified by:
isBasic
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
isDebug
public boolean isDebug()- Specified by:
isDebug
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
isDetailed
public boolean isDetailed()- Specified by:
isDetailed
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
isError
public boolean isError()- Specified by:
isError
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
isRowLevel
public boolean isRowLevel()- Specified by:
isRowLevel
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logBasic
- Specified by:
logBasic
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logBasic
- Specified by:
logBasic
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logDebug
- Specified by:
logDebug
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logDebug
- Specified by:
logDebug
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logDetailed
- Specified by:
logDetailed
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logDetailed
- Specified by:
logDetailed
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logError
- Specified by:
logError
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logError
- Specified by:
logError
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logError
- Specified by:
logError
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logMinimal
- Specified by:
logMinimal
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logMinimal
- Specified by:
logMinimal
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logRowlevel
- Specified by:
logRowlevel
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logRowlevel
- Specified by:
logRowlevel
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
setContainerObjectId
- Specified by:
setContainerObjectId
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
setLogLevel
public void setLogLevel(org.pentaho.di.core.logging.LogLevel arg0) - Specified by:
setLogLevel
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
snap
public void snap(org.pentaho.di.core.logging.MetricsInterface metric, long... value) - Specified by:
snap
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
snap
public void snap(org.pentaho.di.core.logging.MetricsInterface metric, String subject, long... value) - Specified by:
snap
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
isForcingSeparateLogging
public boolean isForcingSeparateLogging()- Specified by:
isForcingSeparateLogging
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
setForcingSeparateLogging
public void setForcingSeparateLogging(boolean forcingSeparateLogging) - Specified by:
setForcingSeparateLogging
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
isGatheringMetrics
public boolean isGatheringMetrics()- Specified by:
isGatheringMetrics
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
setGatheringMetrics
public void setGatheringMetrics(boolean gatheringMetrics) - Specified by:
setGatheringMetrics
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
getFilter
- Specified by:
getFilter
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
setFilter
- Specified by:
setFilter
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-