开发者

SPDiagnosticsService not working form sharepoint Web Application

开发者 https://www.devze.com 2023-03-10 19:04 出处:网络
SPDiagnosticsService not working form sharepoint Web Application. After I call the following code I don\'t any message in ULS log.

SPDiagnosticsService not working form sharepoint Web Application. After I call the following code I don't any message in ULS log.

SPDiagnosticsService.Local.WriteTrace(10001, new SPDiagnosticsCategory("Test", TraceSeverity.High, EventSeverity.Error), TraceSeverity.High, "Test Mesage", null);

However when I call the same code from a Console Application, it is able to write logs and I can see the messages in ULS log.

How can I mak开发者_JAVA百科e it work from a Web Application?


In order to make ULS logging work for a AppPool account that is not Administrator you have to add your AppPool user to "Performance Log Users" group.

And restart the Application Pool that is using this AppPool account.

0

精彩评论

暂无评论...
验证码 换一张
取 消