protected final String render ( final LogEntry logEntry ) { if ( builder == null ) { StringBuilder builder = new StringBuilder ( BUILDER_CAPACITY ) ; token . render ( logEntry , builder ) ; return builder . toString ( ) ; } else { builder . setLength ( 0 ) ; token . render ( logEntry , builder ) ; return builder . toString ( ) ; } }
Renders a log entry as string .