Package org.apache.log4j
Class JulAppender
- java.lang.Object
-
- org.apache.log4j.AppenderSkeleton
-
- org.apache.log4j.JulAppender
-
- All Implemented Interfaces:
org.apache.log4j.Appender,org.apache.log4j.spi.OptionHandler
public class JulAppender extends org.apache.log4j.AppenderSkeletonWe are unable to completely remove the log4j dependency due to ZooKeeper, which explicitly requires an internal class of the log4j package and is unavailable in the slf4j-over-log4j artifact.This JUL appender is a workaround for this issue, appending all log4j events to JUL.
-
-
Constructor Summary
Constructors Constructor Description JulAppender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidappend(org.apache.log4j.spi.LoggingEvent loggingEvent)Append a log event at the appropriate JUL level, depending on the log4j level.voidclose()booleanrequiresLayout()
-
-
-
Method Detail
-
append
protected void append(org.apache.log4j.spi.LoggingEvent loggingEvent)
Append a log event at the appropriate JUL level, depending on the log4j level.- Specified by:
appendin classorg.apache.log4j.AppenderSkeleton
-
requiresLayout
public boolean requiresLayout()
-
close
public void close()
-
-