public void logVelocityMessage(int level,String message){
synchronized (this) {
    Object[] data=new Object[2];
    data[0]=new Integer(level);
    data[1]=message;
    pendingMessages.addElement(data);
  }
}

public void logVelocityMessage ( int level , String message ) { synchronized ( this ) { Object [ ] data = new Object [ 2 ] ; data [ 0 ] = new Integer ( level ) ; data [ 1 ] = message ; pendingMessages . addElement ( data ) ; } }
logs messages . all we do is store them until ' later ' .
