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 String
getContainerObjectId()
String
getFilter()
String
getLogChannelId()
org.pentaho.di.core.logging.LogLevel
getLogLevel()
boolean
isBasic()
boolean
isDebug()
boolean
isDetailed()
boolean
isError()
boolean
isForcingSeparateLogging()
boolean
isGatheringMetrics()
boolean
isRowLevel()
void
logBasic(String arg0)
void
logBasic(String arg0, Object... arg1)
void
logDebug(String arg0)
void
logDebug(String arg0, Object... arg1)
void
logDetailed(String arg0)
void
logDetailed(String arg0, Object... arg1)
void
logError(String arg0)
void
logError(String arg0, Object... arg1)
void
logError(String arg0, Throwable arg1)
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
print(Object obj)
PrintStream methodvoid
print(String string)
PrintStream methodvoid
println(Object obj)
PrintStream methodvoid
println(String string)
PrintStream methodvoid
setContainerObjectId(String arg0)
void
setFilter(String filter)
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
snap(org.pentaho.di.core.logging.MetricsInterface metric, String subject, long... value)
void
statusMessage(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:
statusMessage
in interfaceweka.gui.Logger
- Parameters:
message
- log message for the status area
-
logMessage
public void logMessage(String message)
Weka Logger method- Specified by:
logMessage
in interfaceweka.gui.Logger
- Parameters:
message
- log message for the log area
-
println
public void println(String string)
PrintStream method- Overrides:
println
in classPrintStream
- Parameters:
string
- the log message
-
println
public void println(Object obj)
PrintStream method- Overrides:
println
in classPrintStream
- Parameters:
obj
- the log message
-
print
public void print(String string)
PrintStream method- Overrides:
print
in classPrintStream
- Parameters:
string
- the log message
-
print
public void print(Object obj)
PrintStream method- Overrides:
print
in classPrintStream
- Parameters:
obj
- the log message
-
getContainerObjectId
public String getContainerObjectId()
- Specified by:
getContainerObjectId
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
getLogChannelId
public String 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
public void logBasic(String arg0)
- Specified by:
logBasic
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logBasic
public void logBasic(String arg0, Object... arg1)
- Specified by:
logBasic
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logDebug
public void logDebug(String arg0)
- Specified by:
logDebug
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logDebug
public void logDebug(String arg0, Object... arg1)
- Specified by:
logDebug
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logDetailed
public void logDetailed(String arg0)
- Specified by:
logDetailed
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logDetailed
public void logDetailed(String arg0, Object... arg1)
- Specified by:
logDetailed
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logError
public void logError(String arg0)
- Specified by:
logError
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logError
public void logError(String arg0, Throwable arg1)
- Specified by:
logError
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logError
public void logError(String arg0, Object... arg1)
- Specified by:
logError
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logMinimal
public void logMinimal(String arg0)
- Specified by:
logMinimal
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logMinimal
public void logMinimal(String arg0, Object... arg1)
- Specified by:
logMinimal
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logRowlevel
public void logRowlevel(String arg0)
- Specified by:
logRowlevel
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
logRowlevel
public void logRowlevel(String arg0, Object... arg1)
- Specified by:
logRowlevel
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
setContainerObjectId
public void setContainerObjectId(String arg0)
- 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
public String getFilter()
- Specified by:
getFilter
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
setFilter
public void setFilter(String filter)
- Specified by:
setFilter
in interfaceorg.pentaho.di.core.logging.LogChannelInterface
-
-