JBoss LogManager 1.1.0.CR6

org.jboss.logmanager.formatters
Interface FormatStep


public interface FormatStep

A single format step which handles some part of rendering a log record.


Method Summary
 int estimateLength()
          Emit an estimate of the length of data which this step will produce.
 void render(StringBuilder builder, ExtLogRecord record)
          Render a part of the log record.
 

Method Detail

render

void render(StringBuilder builder,
            ExtLogRecord record)
Render a part of the log record.

Parameters:
builder - the string builder to append to
record - the record being rendered

estimateLength

int estimateLength()
Emit an estimate of the length of data which this step will produce. The more accurate the estimate, the more likely the format operation will be performant.

Returns:
an estimate

JBoss LogManager 1.1.0.CR6

Copyright © 2009 JBoss, a division of Red Hat, Inc.