org.apache.log4j.rewrite

## Interface RewritePolicy

- All Known Implementing Classes:
    MapRewritePolicy, PropertyRewritePolicy, ReflectionRewritePolicy

      public interface RewritePolicy

  This interface is implemented to provide a rewrite strategy for RewriteAppender. RewriteAppender will call the rewrite method with a source logging event. The strategy may return that event, create a new event or return null to suppress the logging request.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `org.apache.log4j.spi.LoggingEvent` | `rewrite(org.apache.log4j.spi.LoggingEvent source)` Rewrite a logging event.

- - ### Method Detail

    - #### rewrite

          org.apache.log4j.spi.LoggingEvent rewrite(org.apache.log4j.spi.LoggingEvent source)

      Rewrite a logging event.
      Parameters:
        `source` - a logging event that may be returned or used to create a new logging event.
      Returns:
        a logging event or null to suppress processing.

Copyright © 2002-2018 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache Chainsaw, Chainsaw, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.