org.apache.logging.log4j.core.appender.rewrite
Interface RewritePolicy

All Known Implementing Classes:
MapRewritePolicy, PropertiesRewritePolicy

public interface RewritePolicy

Interface to be implemented by components that support modifications to the LogEvent.


Method Summary
 LogEvent rewrite(LogEvent source)
          Rewrite a logging event.
 

Method Detail

rewrite

LogEvent rewrite(LogEvent 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 © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.