/** * Return the result of formaltting a pattern run. * @param event the log event * @param run the patter formatter pattern run * @return the formatted string */ protected String formatPatternRun( LogEvent event, PatternFormatter.PatternRun run ) { switch( run.m_type ) { case TYPE_CLASS: return getClass( run.m_format ); default: return super.formatPatternRun( event, run ); } }
final AvalonFormatter formatter = new AvalonFormatter( format );
return new AvalonFormatter( format, depth, printCascading );