And*_*ard 1 azure-web-app-service asp.net-core-2.2
无法在 Azure 应用服务中的 ASP.NET Core 2.2 的 stdout 日志中记录错误。stdout 日志文件已创建但为空。
中的 web.config 配置<system.webServer>:
<aspNetCore processPath="dotnet" arguments=".\xxx.dll" stdoutLogEnabled="true" stdoutLogFile="\\?\%home%\LogFiles\stdout" hostingModel="InProcess" />
Run Code Online (Sandbox Code Playgroud)
该问题可以通过临时删除hostingModel="InProcess"然后错误记录在标准输出日志文件中来解决。
hostingModel="InProcess" 移除:
<aspNetCore processPath="dotnet" arguments=".\xxx.dll" stdoutLogEnabled="true" stdoutLogFile="\\?\%home%\LogFiles\stdout" />
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1190 次 |
| 最近记录: |