开发者

SPDiagnosticsService not working form sharepoint Web Application

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜