This article transferred from: http://www.cnblogs.com/mincyw/p/3425468.html
At IIS6, the location of the site log store can be found through the IIS Manager log configuration. However, under IIS7, the log configuration under IIS Manager can only find the home directory of the IIS log configuration, but in which subdirectory it is not directly known. Later in the main log directory, found that the subdirectory name is more regular: W3SVC + number, Lenovo to the IIS site configuration file, each site will be assigned an ID, the number behind should be the corresponding site ID. According to conjecture, open the directory in the log file view, is confirmed. The site configuration file is typically located in: C:\Windows\System32\inetsrv\config\applicationHost.config The site configuration is located at: \configuration\ System.applicationhost\sites
the usual configuration content is as follows, where the ID is the number of the log file name, the following log directory is usually: W3SVC10 <site name= "www.xxx.com" id= "ten" > <application path= "/" applicationpool= "Clr4integratedapppool" > <virtualdirectory path= "/" physicalpath= "d:\www\ Www.xxx.com "/> </application> <bindings> <binding protocol= "http" bindinginformation= "*:80:www.xxx.com"/> </bindings> </site>
"Go" iis7 the site log default location