com.bigdata.util.config
Class Log4jLoggingHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by com.bigdata.util.config.Log4jLoggingHandler

public class Log4jLoggingHandler
extends Handler

Implements a java.util.logging handler that redirects logged messages to a Log4j Appender. This allows all the log messages to be collected into a single log file. Configuration: The Log4jLoggingHandler is initialized using the following LogManager configuration properties:


Constructor Summary
Log4jLoggingHandler()
           
 
Method Summary
 void close()
           
 void flush()
           
 void publish(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

Log4jLoggingHandler

public Log4jLoggingHandler()
Method Detail

publish

public void publish(LogRecord record)
Specified by:
publish in class Handler

close

public void close()
Specified by:
close in class Handler

flush

public void flush()
Specified by:
flush in class Handler


Copyright © 2006-2012 SYSTAP, LLC. All Rights Reserved.