I am guessing that you have encountered the problem that many discovered in Logic 8 that it does not automatically show a "Master" track in the arrange page, so there is no track lane to automate things.
However, are you talking about the master output, which is simply the master volume coming out of your system, or the Stereo Output, labeled "Output 1-2" where all of your tracks are feeding, which is your "Master Mix Bus"?
Either way, you do the following:
1. Create a new track (either audio or software type - it doesn't matter because you will be reassigning it in the next step)
2. "control-click" on the track header in the arrange page and a menu will appear which includes "reassign track objects".
You want to select
reassign track objects>mixer>output stereo
or
reassign track objects>mixer>other>master
If you want to automate your mix, you will want to select the output stereo option, otherwise you are just automating the volume coming out of your speakers/headphones.
that's the way I do it, other logic gurus probably may know an easier solution.