AU use in Logic pro

I want to get the MidiMessage from AU to Logic ,and show the MidiMessage in the Logic Environment Monitor through the output line. I let the producesMidi() return true. in the processBlock(),use the keyboardState.processNextMidiBuffer() to produce new MidiMessage, and do not clear the midibuffer , but I fail to Receive the message in the Monitor . How to do it? thanks for anyreply.
kuku.

In the Juce Plug-In Host , I can see the midioutput port on My Plug-In,and I can use the Plug-In to send MidiMessage to other Plug-In Input port.

As far as I know, Logic does not (yet) support the further processing of MIDI generated inside an AU. I’ve reported this to Apple as a featuere request many times, albeit to no avail.