com.bigdata.util.config
Class Log4jLoggingHandler
java.lang.Object
java.util.logging.Handler
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:
- com.bigdata.util.config.Log4jLoggingHandler.loggername
specifies the name of a Log4j Logger that will be used to find
the Log4j Appenders used for actually logging the message. This
property is optional and defaults to the log4j root logger.
| 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 |
Log4jLoggingHandler
public Log4jLoggingHandler()
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.