org.yajul.log
Class JuliToLog4jHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by org.yajul.log.JuliToLog4jHandler

public class JuliToLog4jHandler
extends java.util.logging.Handler

A JULI (java.util.logging) handler that redirects java.util.logging messages to Log4J http://wiki.apache.org/myfaces/Trinidad_and_Common_Logging
User: josh Date: Jun 4, 2008 Time: 3:31:21 PM


Constructor Summary
JuliToLog4jHandler()
           
 
Method Summary
 void close()
           
 void flush()
           
static org.apache.log4j.Logger getTargetLogger(java.lang.Class clazz)
           
 void publish(java.util.logging.LogRecord record)
           
 
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JuliToLog4jHandler

public JuliToLog4jHandler()
Method Detail

publish

public void publish(java.util.logging.LogRecord record)
Specified by:
publish in class java.util.logging.Handler

getTargetLogger

public static org.apache.log4j.Logger getTargetLogger(java.lang.Class clazz)

flush

public void flush()
Specified by:
flush in class java.util.logging.Handler

close

public void close()
Specified by:
close in class java.util.logging.Handler


Copyright © 2008. All Rights Reserved.