Hi:
In addition to Scott's suggestion, you might also want to check with your SAS Administrators. If you are using the SAS Enterprise Intelligence Platform and you want to get log information from the Workspace server logs or the Stored Process server logs, you may find that the macro program as provided on the Tech Support site needs some modification to run in the Platform environment. You may or may not have read access (programmatically) to the LOG file created on the Platform when your stored process runs.
If you are talking about the log from SAS Stored Process execution, there are some reserved macro variables, such as &_PROGRAM, which contains the name of the stored process and others like &_REPOSITORY, &_SRVNAME, &_SRVPORT which might prove useful.
Info on stored process reserved macro variables can be found here:
http://support.sas.com/rnd/itech/doc9/dev_guide/stprocess/reserved.html
cynthia