{
final LoggingEvent event = theQueue.poll( 1, TimeUnit.SECONDS );
if( null != event )
{
final MessageContext context = event.getContext();
final Formatter format = new Formatter().format( context.template(), event.getArguments() );
final String completeMessage = format.toString();
final Logger logger = LoggerFactory.getLogger( event.getComponentId() );
MDC.put( "instanceId", event.getInstanceId() );
MDC.put( "major", Integer.toString( context.getMajorCode() ) );
MDC.put( "minor", Integer.toString( context.getMinorCode() ) );