FileDocCategorySizeDatePackage
RelativeTimeFilter.javaAPI DocApache log4j 1.2.151284Sat Aug 25 00:09:34 BST 2007org.apache.log4j.util

RelativeTimeFilter

public class RelativeTimeFilter extends Object implements Filter

Fields Summary
org.apache.oro.text.perl.Perl5Util
util
Constructors Summary
Methods Summary
public java.lang.Stringfilter(java.lang.String in)

  
   
     
    String pat = "/"+Filter.RELATIVE_TIME_PAT+"/";

    if(util.match(pat, in)) {    
      //System.out.println("Removing relative time from line ["+in+"]");
      return util.substitute("s/"+Filter.RELATIVE_TIME_PAT+"//", in);
    } else {
      return in;
    }