org.apache.log4j.rewrite
クラス PropertyRewritePolicy

java.lang.Object
  上位を拡張 org.apache.log4j.rewrite.PropertyRewritePolicy
すべての実装されたインタフェース:
RewritePolicy

public class PropertyRewritePolicy
extends java.lang.Object
implements RewritePolicy

This policy rewrites events by adding a user-specified list of properties to the event. Existing properties are not modified. The combination of the RewriteAppender and this policy performs the same actions as the PropertyFilter from log4j 1.3.


コンストラクタの概要
PropertyRewritePolicy()
           
 
メソッドの概要
 org.apache.log4j.spi.LoggingEvent rewrite(org.apache.log4j.spi.LoggingEvent source)
          Rewrite a logging event.
 void setProperties(java.lang.String props)
          Set a string representing the property name/value pairs.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PropertyRewritePolicy

public PropertyRewritePolicy()
メソッドの詳細

setProperties

public void setProperties(java.lang.String props)
Set a string representing the property name/value pairs. Form: propname1=propvalue1,propname2=propvalue2

パラメータ:
props -

rewrite

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

定義:
インタフェース RewritePolicy 内の rewrite
パラメータ:
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.