Class 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:
  • Constructor Details

    • LogAdapter

      public LogAdapter(org.pentaho.di.core.logging.LogChannelInterface log)
  • Method Details

    • statusMessage

      public void statusMessage(String message)
      Weka Logger method
      Specified by:
      statusMessage in interface weka.gui.Logger
      Parameters:
      message - log message for the status area
    • logMessage

      public void logMessage(String message)
      Weka Logger method
      Specified by:
      logMessage in interface weka.gui.Logger
      Parameters:
      message - log message for the log area
    • println

      public void println(String string)
      PrintStream method
      Overrides:
      println in class PrintStream
      Parameters:
      string - the log message
    • println

      public void println(Object obj)
      PrintStream method
      Overrides:
      println in class PrintStream
      Parameters:
      obj - the log message
    • print

      public void print(String string)
      PrintStream method
      Overrides:
      print in class PrintStream
      Parameters:
      string - the log message
    • print

      public void print(Object obj)
      PrintStream method
      Overrides:
      print in class PrintStream
      Parameters:
      obj - the log message
    • getContainerObjectId

      public String getContainerObjectId()
      Specified by:
      getContainerObjectId in interface org.pentaho.di.core.logging.LogChannelInterface
    • getLogChannelId

      public String getLogChannelId()
      Specified by:
      getLogChannelId in interface org.pentaho.di.core.logging.LogChannelInterface
    • getLogLevel

      public org.pentaho.di.core.logging.LogLevel getLogLevel()
      Specified by:
      getLogLevel in interface org.pentaho.di.core.logging.LogChannelInterface
    • isBasic

      public boolean isBasic()
      Specified by:
      isBasic in interface org.pentaho.di.core.logging.LogChannelInterface
    • isDebug

      public boolean isDebug()
      Specified by:
      isDebug in interface org.pentaho.di.core.logging.LogChannelInterface
    • isDetailed

      public boolean isDetailed()
      Specified by:
      isDetailed in interface org.pentaho.di.core.logging.LogChannelInterface
    • isError

      public boolean isError()
      Specified by:
      isError in interface org.pentaho.di.core.logging.LogChannelInterface
    • isRowLevel

      public boolean isRowLevel()
      Specified by:
      isRowLevel in interface org.pentaho.di.core.logging.LogChannelInterface
    • logBasic

      public void logBasic(String arg0)
      Specified by:
      logBasic in interface org.pentaho.di.core.logging.LogChannelInterface
    • logBasic

      public void logBasic(String arg0, Object... arg1)
      Specified by:
      logBasic in interface org.pentaho.di.core.logging.LogChannelInterface
    • logDebug

      public void logDebug(String arg0)
      Specified by:
      logDebug in interface org.pentaho.di.core.logging.LogChannelInterface
    • logDebug

      public void logDebug(String arg0, Object... arg1)
      Specified by:
      logDebug in interface org.pentaho.di.core.logging.LogChannelInterface
    • logDetailed

      public void logDetailed(String arg0)
      Specified by:
      logDetailed in interface org.pentaho.di.core.logging.LogChannelInterface
    • logDetailed

      public void logDetailed(String arg0, Object... arg1)
      Specified by:
      logDetailed in interface org.pentaho.di.core.logging.LogChannelInterface
    • logError

      public void logError(String arg0)
      Specified by:
      logError in interface org.pentaho.di.core.logging.LogChannelInterface
    • logError

      public void logError(String arg0, Throwable arg1)
      Specified by:
      logError in interface org.pentaho.di.core.logging.LogChannelInterface
    • logError

      public void logError(String arg0, Object... arg1)
      Specified by:
      logError in interface org.pentaho.di.core.logging.LogChannelInterface
    • logMinimal

      public void logMinimal(String arg0)
      Specified by:
      logMinimal in interface org.pentaho.di.core.logging.LogChannelInterface
    • logMinimal

      public void logMinimal(String arg0, Object... arg1)
      Specified by:
      logMinimal in interface org.pentaho.di.core.logging.LogChannelInterface
    • logRowlevel

      public void logRowlevel(String arg0)
      Specified by:
      logRowlevel in interface org.pentaho.di.core.logging.LogChannelInterface
    • logRowlevel

      public void logRowlevel(String arg0, Object... arg1)
      Specified by:
      logRowlevel in interface org.pentaho.di.core.logging.LogChannelInterface
    • setContainerObjectId

      public void setContainerObjectId(String arg0)
      Specified by:
      setContainerObjectId in interface org.pentaho.di.core.logging.LogChannelInterface
    • setLogLevel

      public void setLogLevel(org.pentaho.di.core.logging.LogLevel arg0)
      Specified by:
      setLogLevel in interface org.pentaho.di.core.logging.LogChannelInterface
    • snap

      public void snap(org.pentaho.di.core.logging.MetricsInterface metric, long... value)
      Specified by:
      snap in interface org.pentaho.di.core.logging.LogChannelInterface
    • snap

      public void snap(org.pentaho.di.core.logging.MetricsInterface metric, String subject, long... value)
      Specified by:
      snap in interface org.pentaho.di.core.logging.LogChannelInterface
    • isForcingSeparateLogging

      public boolean isForcingSeparateLogging()
      Specified by:
      isForcingSeparateLogging in interface org.pentaho.di.core.logging.LogChannelInterface
    • setForcingSeparateLogging

      public void setForcingSeparateLogging(boolean forcingSeparateLogging)
      Specified by:
      setForcingSeparateLogging in interface org.pentaho.di.core.logging.LogChannelInterface
    • isGatheringMetrics

      public boolean isGatheringMetrics()
      Specified by:
      isGatheringMetrics in interface org.pentaho.di.core.logging.LogChannelInterface
    • setGatheringMetrics

      public void setGatheringMetrics(boolean gatheringMetrics)
      Specified by:
      setGatheringMetrics in interface org.pentaho.di.core.logging.LogChannelInterface
    • getFilter

      public String getFilter()
      Specified by:
      getFilter in interface org.pentaho.di.core.logging.LogChannelInterface
    • setFilter

      public void setFilter(String filter)
      Specified by:
      setFilter in interface org.pentaho.di.core.logging.LogChannelInterface