Package org.apache.log4j.pattern

Examples of org.apache.log4j.pattern.PatternConverter.format()


  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


     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

     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

        PatternConverter c = patternConverters[i];
        buf.append("<td class=\"");
        buf.append(c.getStyleClass(event).toLowerCase());
        buf.append("\">");
        int fieldStart = buf.length();
        c.format(event, buf);
        patternFields[i].format(fieldStart, buf);
        buf.append("</td>");
        buf.append(Layout.LINE_SEP);
    }
    buf.append("</tr>");
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.