Class KettleLogChannelAppender
- java.lang.Object
-
- org.pentaho.di.core.logging.log4j.KettleLogChannelAppender
-
- All Implemented Interfaces:
org.apache.logging.log4j.core.Appender
,org.apache.logging.log4j.core.LifeCycle
public class KettleLogChannelAppender extends Object implements org.apache.logging.log4j.core.Appender
-
-
Field Summary
Fields Modifier and Type Field Description static Map<LogLevel,org.apache.logging.log4j.Level>
LOG_LEVEL_MAP
Maps Kettle LogLevels to Log4j Levels
-
Constructor Summary
Constructors Constructor Description KettleLogChannelAppender(LogChannelInterface log, Log4jKettleLayout layout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
append(org.apache.logging.log4j.core.LogEvent event)
org.apache.logging.log4j.core.ErrorHandler
getHandler()
org.apache.logging.log4j.core.Layout<? extends Serializable>
getLayout()
String
getName()
org.apache.logging.log4j.core.LifeCycle.State
getState()
boolean
ignoreExceptions()
void
initialize()
boolean
isStarted()
boolean
isStopped()
void
setHandler(org.apache.logging.log4j.core.ErrorHandler handler)
void
start()
void
stop()
-
-
-
Constructor Detail
-
KettleLogChannelAppender
public KettleLogChannelAppender(LogChannelInterface log, Log4jKettleLayout layout)
-
-
Method Detail
-
append
public void append(org.apache.logging.log4j.core.LogEvent event)
- Specified by:
append
in interfaceorg.apache.logging.log4j.core.Appender
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.apache.logging.log4j.core.Appender
-
getLayout
public org.apache.logging.log4j.core.Layout<? extends Serializable> getLayout()
- Specified by:
getLayout
in interfaceorg.apache.logging.log4j.core.Appender
-
ignoreExceptions
public boolean ignoreExceptions()
- Specified by:
ignoreExceptions
in interfaceorg.apache.logging.log4j.core.Appender
-
getHandler
public org.apache.logging.log4j.core.ErrorHandler getHandler()
- Specified by:
getHandler
in interfaceorg.apache.logging.log4j.core.Appender
-
setHandler
public void setHandler(org.apache.logging.log4j.core.ErrorHandler handler)
- Specified by:
setHandler
in interfaceorg.apache.logging.log4j.core.Appender
-
getState
public org.apache.logging.log4j.core.LifeCycle.State getState()
- Specified by:
getState
in interfaceorg.apache.logging.log4j.core.LifeCycle
-
initialize
public void initialize()
- Specified by:
initialize
in interfaceorg.apache.logging.log4j.core.LifeCycle
-
start
public void start()
- Specified by:
start
in interfaceorg.apache.logging.log4j.core.LifeCycle
-
stop
public void stop()
- Specified by:
stop
in interfaceorg.apache.logging.log4j.core.LifeCycle
-
isStarted
public boolean isStarted()
- Specified by:
isStarted
in interfaceorg.apache.logging.log4j.core.LifeCycle
-
isStopped
public boolean isStopped()
- Specified by:
isStopped
in interfaceorg.apache.logging.log4j.core.LifeCycle
-
-