org.apache.log4j
Class LogCapture

java.lang.Object
  extended by org.apache.log4j.LogCapture

public class LogCapture
extends java.lang.Object

Helper class to set up and capture log messages.


Constructor Summary
LogCapture(Level level)
          Creates new instance of LogCapture.
 
Method Summary
 java.lang.String getMessage()
          Get message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogCapture

public LogCapture(Level level)
Creates new instance of LogCapture.

Method Detail

getMessage

public java.lang.String getMessage()
Get message.

Returns:
rendered message, null if no logging event captured.


Copyright © 2010 The Apache Software Foundation. Licensed under the Apache License, Version 2.0

Apache Extras Companion for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.