A Little Tip About Debugging with SharePoint Log files
Often times, when looking in to a SharePoint problem, we look at the log files to help us look deeper. In a default configuration, these files are located in the directory : C:/Program Files/Common Files/Microsoft Shared/Web Server Extensions/14/LOGS . Have you ever tried to open one of those files that is huge, and your text reader application (notepad) goes to not responding? OR worse. tried to figure out what happened in a particular time frame? Here’s a quick tip, start a SharePoint Management Shell instance, and type in New-SPLogFile. This will start a new log file. Re-create your problem, then run the command again. Now go back, and you will see a (hopefully smaller) new log file that contains the entries for the time frame between the two New-SPLogFile commands.