To find out the IIS logs location of a site:
1. Open IIS Manager;
2. Click the Web Site;
3. Find the Logging icon and double click it;
4. Find the location of the logs in the Directory text box.
If you are using IIS Express of the Visual Studio, the logs location of IIS Express is at %userprofile%\Documents\IISExpress\Logs
In C#, to add infomation to the IIS logs, use:
Response.AppendToLog("your debug info");
or
System.Web.HttpContext.Current.Response.AppendToLog("your debug info");
No comments:
Post a Comment