IISExpress 日志文件位置 [英] IISExpress Log File Location

查看:38
本文介绍了IISExpress 日志文件位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IISExpress 开箱即用地将日志和配置数据写入预先确定的位置.

IISExpress writes log and configuration data to pre-determined location out of the box.

该目录是存储在用户 Documents 目录中的IISExpress"目录.

The directory is an "IISExpress" directory stored in a user's Documents directory.

目录下存放了以下文件夹文件.

In the directory is stored the following folders files underneath.

  • 配置
  • 日志
  • 跟踪日志文件

我的主目录的位置在网络共享上,由组策略决定

The location of my home directory is on a network share, determined by group policy

目前,我们遇到了 Visual Studio 在停止使用 IIS Express 调试 Silverlight 应用程序时锁定的情况.

Currently we are encountering scenarios where visual studio locks up when stopping debugging Silverlight applications using IIS Express.

我想更改日志的位置 &IISExpress 的配置数据,看看这是否解决了 Visual Studio 锁定的问题.是否可以更改 log & 的默认位置?配置文件?

推荐答案

1 .默认情况下,applicationhost.config 文件定义了以下两个日志文件位置.此处 IIS_USER_HOME 将扩展为 %userprofile%documentsIISExpress.

1 . By default applicationhost.config file defines following two log file locations. Here IIS_USER_HOME would be expanded as %userprofile%documentsIISExpress.

<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.如果您从命令行运行 IIS Express,您可以使用/config"开关来提供您选择的配置文件.以下链接可能对您有所帮助 http://learn.iis.net/page.aspx/870/running-iis-express-from-the-command-line/

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆