Examples of PatternConverter


Examples of org.apache.log4j.helpers.PatternConverter

      super(pattern);
   }

   protected void finalizeConverter(char c)
   {
      PatternConverter pc = null;
      switch(c)
      {
         case 'z':
            pc = new ThreadNDCConverter(formattingInfo);
            currentLiteral.setLength(0);
View Full Code Here

Examples of org.apache.log4j.helpers.PatternConverter

      sbuf = new StringBuffer(BUF_SIZE);
    } else {
      sbuf.setLength(0);
    }

    PatternConverter c = head;

    while(c != null) {
      c.format(sbuf, event);
      c = c.next;
    }
    return sbuf.toString();
  }
View Full Code Here

Examples of org.apache.log4j.helpers.PatternConverter

    public PatternParser(String pattern) {
        super(pattern);
    }

    protected void finalizeConverter(char c) {
        PatternConverter pc = null;
        switch (c) {
            case 'a':
                String key = extractOption();
                pc = new NamedNDCConverter(formattingInfo, key);
                currentLiteral.setLength(0);
View Full Code Here

Examples of org.apache.log4j.helpers.PatternConverter

      sbuf = new StringBuffer(BUF_SIZE);
    } else {
      sbuf.setLength(0);
    }

    PatternConverter c = head;

    while(c != null) {
      c.format(sbuf, event);
      c = c.next;
    }
    return sbuf.toString();
  }
View Full Code Here

Examples of org.apache.log4j.helpers.PatternConverter

      sbuf = new StringBuffer(BUF_SIZE);
    } else {
      sbuf.setLength(0);
    }

    PatternConverter c = head;

    while(c != null) {
      c.format(sbuf, event);
      c = c.next;
    }
    return sbuf.toString();
  }
View Full Code Here

Examples of org.apache.log4j.helpers.PatternConverter

      sbuf = new StringBuffer(BUF_SIZE);
    } else {
      sbuf.setLength(0);
    }

    PatternConverter c = head;

    while(c != null) {
      c.format(sbuf, event);
      c = c.next;
    }
    return sbuf.toString();
  }
View Full Code Here

Examples of org.apache.log4j.helpers.PatternConverter

        }
    }
   
    @Override
    protected void finalizeConverter(char c) {
        PatternConverter pc = null;
        switch(c) {
            case 'P':
                pc = new RedisPatternConverter(formattingInfo, PROCESS_CONVERTER);
                currentLiteral.setLength(0);
                addConverter(pc);
View Full Code Here

Examples of org.apache.log4j.helpers.PatternConverter

/* 61 */     super(pattern);
/*    */   }
/*    */
/*    */   protected void finalizeConverter(char c)
/*    */   {
/* 66 */     PatternConverter pc = null;
/* 67 */     switch (c)
/*    */     {
/*    */     case 'z':
/* 70 */       pc = new ThreadNDCConverter(this.formattingInfo);
/* 71 */       this.currentLiteral.setLength(0);
View Full Code Here

Examples of org.apache.log4j.pattern.PatternConverter

      getLogger().error("Error occured while sending e-mail notification.", e);
    }
  }

  String computeSubject(LoggingEvent triggeringEvent) {
    PatternConverter c = this.subjectConverterHead;
    StringWriter sw = new StringWriter();
    try {
      while (c != null) {
        c.format(sw, triggeringEvent);
        c = c.next;
      }
    } catch(java.io.IOException ie) {
      // this should not happen
    }
View Full Code Here

Examples of org.apache.log4j.pattern.PatternConverter

  /**
     Produces a formatted string as specified by the conversion pattern.
  */
  public  void format(Writer output, LoggingEvent event) throws IOException {
    PatternConverter c = head;
    while (c != null) {
      c.format(output, event);
      c = c.next;
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.