org.apache.log4j

## Class LogCapture

- java.lang.Object
- - org.apache.log4j.LogCapture

-     public class LogCapture
      extends Object

  Helper class to set up and capture log messages.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LogCapture(Level level)` Creates new instance of LogCapture.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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 String getMessage()

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

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

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