yep ... I do it like that all the time.
Soundflower is your friend for piping audio out of mainstage into an audio track in Logic.
http://cycling74.com/products/soundflower/
To capture midi, just create an empty software instrument in logic and leave it record enabled (i.e. uncheck "open library" when creating it, and then just never select a software instrument to go on the track). This will record all the midi messages you send to mainstage.
Granted, that only gets you so far. Playing that midi track in Logic isn't going to make any sound until you assign a software instrument to it, but it can be handy.
A lot of times I'll record jam sessions with my band this way. Usually I'm playing pretty simple patches. 90% of the time it's just the Steinway samples, or NI B42 for organ stuff. If we do something particularly brilliant, but I flubbed the keys, I'll go into logic and manually assign whatever patch I was using in mainstage to it, then edit the midi.
You could, in theory use something like the IAC device to route midi back OUT of Logic, into MainStage (and then capture the audio out of mainstage back into logic with soundflower). Essentially making MainStage into one big software instrument in Logic. I've never tried it, but others on this board have posted about doing this before, and I don't see why it wouldn't work.
I really wish Apple would just setup Mainstage to work this way out of the box. It'd be an incredibly powerful tool.