org.apache.log4j.rewrite
インタフェース RewritePolicy

既知の実装クラスの一覧:
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.


メソッドの概要
 org.apache.log4j.spi.LoggingEvent rewrite(org.apache.log4j.spi.LoggingEvent source)
          Rewrite a logging event.
 

メソッドの詳細

rewrite

org.apache.log4j.spi.LoggingEvent rewrite(org.apache.log4j.spi.LoggingEvent source)
Rewrite a logging event.

パラメータ:
source - a logging event that may be returned or used to create a new logging event.
戻り値:
a logging event or null to suppress processing.


Copyright © 2010 Apache Software Foundation. All Rights Reserved.