简体   繁体   中英

Configuring Azure Diagnostics for Azure Application Service (PaaS)

Existing WCF service project modified to run as Azure Application Service (PaaS). 现有的WCF服务项目已修改为作为Azure应用程序服务(PaaS)运行。
Originally I used log4net for my info/error logging, but it is rather cumbersome to look at those logs via FTP or SCM console. After some research I came to a conclusion that Microsoft.WindowsAzure.Diagnostics is the recommended way to handle logging in Azure apps.
I can't find a guide, for my scenario, on how to enable WindowsAzure Diagnostics for Application Service that is NOT created as Web/Worker Role. 对于我的情况,我找不到有关如何启用未作为Web /工作者角色创建的ApplicationAWS的指南。
The closest I got is Set-AzureServiceDiagnosticsExtension cmdlet, but it requires Role as parameter...

Question/problem: I can't find a guide, for my scenario, on how to enable WindowsAzure Diagnostics for Application Service that is NOT created as Web/Worker Role.

You can't use Azure Diagnostics for your Azure Application Service. It is meant for Azure Cloud Service (Web/Worker Role) and Azure Virtual Machines.

For App Services diagnostics, please see this link: https://azure.microsoft.com/en-in/documentation/articles/web-sites-enable-diagnostic-log/ .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM