How to Log errors to SharePoint Log file
In SharePoint log files are available under \Common Files\Microsoft Shared\web server extensions\12\LOG.
Exceptions can be logged to the default SharePoint log file using the following line of code.
Microsoft.Office.Server.Diagnostics.PortalLog.LogString(”Exception Occurred: {0} || {1}”, Ex.Message, Ex.StackTrace);
Note: Make sure that you add the reference to Microsfot.Office.Server dll
How get the process ID of a SharePoint application if multiple web Applications are running
You can run IISAPP utility from the command prompt which will list all the w3wp processes, their Application Pool Id and process ID.

This is helpful when you want to attach w3wp process to a debugger ,and when multiple web Applications are running.
Microsoft Office SharePoint Server 2007 Trial Version
Here is the link to download the Trial version of Standard and Enterprise editions of Microsoft Sharepoint Server 2007.
Welcome to MOSSGEEK
Welcome to mossgeek , a blog for share point professionals.

