org.pentaho.di.core.logging
Class KettleLogChannelAppender

java.lang.Object
  extended by org.apache.log4j.AppenderSkeleton
      extended by org.pentaho.di.core.logging.KettleLogChannelAppender
All Implemented Interfaces:
org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler

public class KettleLogChannelAppender
extends org.apache.log4j.AppenderSkeleton

Logs Log4j log events to a Kettle log channel


Field Summary
static Map<LogLevel,org.apache.log4j.Level> LOG_LEVEL_MAP
          Maps Kettle LogLevels to Log4j Levels
 
Constructor Summary
KettleLogChannelAppender(LogChannelInterface log)
           
KettleLogChannelAppender(LogChannelInterface log, org.apache.log4j.Layout layout)
          Create an appender that logs to the provided log channel
 
Method Summary
 void close()
           
 boolean requiresLayout()
           
 
Methods inherited from class org.apache.log4j.AppenderSkeleton
activateOptions, addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_LEVEL_MAP

public static Map<LogLevel,org.apache.log4j.Level> LOG_LEVEL_MAP
Maps Kettle LogLevels to Log4j Levels

Constructor Detail

KettleLogChannelAppender

public KettleLogChannelAppender(LogChannelInterface log)

KettleLogChannelAppender

public KettleLogChannelAppender(LogChannelInterface log,
                                org.apache.log4j.Layout layout)
Create an appender that logs to the provided log channel

Parameters:
log - Log channel to log to
layout - layout to use
Throws:
NullPointerException - If log is null
Method Detail

requiresLayout

public boolean requiresLayout()

close

public void close()