IISExpress日志文件位置 [英] IISExpress Log File Location
问题描述
IISExpress将日志和配置数据写入预先确定的开箱即用位置。
该目录是存储在用户文档目录中的IISExpress目录。 / p>
在目录中存储下面的以下文件夹文件。
- 配置
- 日志
- TraceLogFiles
我家的位置目录位于网络共享上,由组策略决定
目前,我们遇到使用IIS Express停止调试Silverlight应用程序时visual studio锁定的情况。
我当时想要更改日志的位置& IISExpress的配置数据,看看这是否解决了visual studio锁定的问题。是否可以更改log&的默认位置?配置文件?
1。默认情况下,applicationhost.config文件定义以下两个日志文件位置。这里IIS_USER_HOME将扩展为%userprofile%\documents\IISExpress\
。
< siteDefaults>
< logFile logFormat =W3Cdirectory =%IIS_USER_HOME%\ Logs/>
< traceFailedRequestsLogging directory =%IIS_USER_HOME%\TraceLogFilesenabled =true/>
< / siteDefaults>
您可以更新上述目录路径以更改日志文件位置。
2。如果从命令行运行IIS Express,可以使用/ config开关提供您选择的配置文件。以下链接可以帮助您 http:/ /learn.iis.net/page.aspx/870/running-iis-express-from-the-command-line/
IISExpress writes log and configuration data to pre-determined location out of the box.
The directory is an "IISExpress" directory stored in a user's Documents directory.
In the directory is stored the following folders files underneath.
- Config
- Logs
- TraceLogFiles
The location of my home directory is on a network share, determined by group policy
Currently we are encountering scenarios where visual studio locks up when stopping debugging Silverlight applications using IIS Express.
I was looking to change the location for the log & configuration data for IISExpress to see if this fixes the problem of visual studio locking up. Is it possible to change the default location of log & config files ?
1 . By default applicationhost.config file defines following two log file locations. Here IIS_USER_HOME would be expanded as %userprofile%\documents\IISExpress\
.
<siteDefaults>
<logFile logFormat="W3C" directory="%IIS_USER_HOME%\Logs" />
<traceFailedRequestsLogging directory="%IIS_USER_HOME%\TraceLogFiles" enabled="true" />
</siteDefaults>
You can update above directory paths to change the log file locations.
2 . If you are running IIS Express from command line, you can use '/config' switch to provide configuration file of your choice. Following link may help you http://learn.iis.net/page.aspx/870/running-iis-express-from-the-command-line/
这篇关于IISExpress日志文件位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!