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

LineNumberFilter

public class LineNumberFilter 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)


   
     
    if(util.match("/\\(.*:\\d{1,4}\\)/", in)) {
      return util.substitute("s/:\\d{1,4}\\)/:XXX)/", in);
    } else {
      if(in.indexOf(", Compiled Code") >= 0) {
         return util.substitute("s/, Compiled Code/:XXX/", in);
      }
      return in;
    }