如何使用 VSTS 发布任务在 IIS 上添加自定义高级日志记录字段

How to add custom advanced Logging fields on IIS using VSTS release task

我正在通过 VSTS 发布管理(使用 VSTS 任务)部署 IIS application/website。但是,我需要在 IIS 上添加高级日志记录字段。找不到合适的 VSTS 任务。

任何人都可以提出建议吗?

您可以添加调用 Appcmd to set the custom logging field or create a console application to do this and call it during the build/release. Sample code here: Adding Custom Fields to a Log File for a Site .

的 powershell 脚本任务