org.lsst.ccs.utilities.logging
Class JULAppender

java.lang.Object
  extended by org.apache.log4j.AppenderSkeleton
      extended by org.lsst.ccs.utilities.logging.JULAppender
All Implemented Interfaces:
org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler

public class JULAppender
extends org.apache.log4j.AppenderSkeleton

simple bridge from Log4J to JUL. (some code copied from Apache but adapted to our needs)

Author:
bamade

Field Summary
 
Fields inherited from class org.apache.log4j.AppenderSkeleton
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
 
Constructor Summary
JULAppender()
          Creates a new appender with no special layout
JULAppender(org.apache.log4j.Layout layout)
          Creates a new appender with the specified layout
 
Method Summary
protected  void append(org.apache.log4j.spi.LoggingEvent loggingEvent)
           
 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
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JULAppender

public JULAppender()
Creates a new appender with no special layout


JULAppender

public JULAppender(org.apache.log4j.Layout layout)
Creates a new appender with the specified layout

Method Detail

append

protected void append(org.apache.log4j.spi.LoggingEvent loggingEvent)
Specified by:
append in class org.apache.log4j.AppenderSkeleton

close

public void close()

requiresLayout

public boolean requiresLayout()


Copyright © 2013 LSST. All Rights Reserved.