org.apache.log4j.util
Class MDCOrderFilter

java.lang.Object
  extended by org.apache.log4j.util.MDCOrderFilter
All Implemented Interfaces:
Filter

public class MDCOrderFilter
extends java.lang.Object
implements Filter

This class switches MDC values into the order (unreasonably) expected by the witness files.


Field Summary
 
Fields inherited from interface org.apache.log4j.util.Filter
ABSOLUTE_DATE_AND_TIME_PAT, ABSOLUTE_TIME_PAT, BASIC_PAT, ISO8601_PAT, RELATIVE_TIME_PAT
 
Constructor Summary
MDCOrderFilter()
           
 
Method Summary
 java.lang.String filter(java.lang.String in)
          Switch order of MDC keys when not in expected order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MDCOrderFilter

public MDCOrderFilter()
Method Detail

filter

public java.lang.String filter(java.lang.String in)
Switch order of MDC keys when not in expected order.

Specified by:
filter in interface Filter


Copyright © 2010 The Apache Software Foundation. Licensed under the Apache License, Version 2.0

Apache Extras Companion for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.