org.apache.log4j.rewrite
クラス ReflectionRewritePolicy

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

public class ReflectionRewritePolicy
extends java.lang.Object
implements RewritePolicy

This policy rewrites events by evaluating any JavaBean properties on the message object and adding them to the event properties. If the message object has a message property, the value of that property will be used as the message for the rewritten event and will not be added to the event properties. Values from the JavaBean properties will replace any existing property with the same name. The combination of the RewriteAppender and this policy performs the same actions as the ReflectionFilter from log4j 1.3.


コンストラクタの概要
ReflectionRewritePolicy()
           
 
メソッドの概要
 org.apache.log4j.spi.LoggingEvent rewrite(org.apache.log4j.spi.LoggingEvent source)
          Rewrite a logging event.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ReflectionRewritePolicy

public ReflectionRewritePolicy()
メソッドの詳細

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.