vrijdag 4 november 2011

Unable to write to ULS Log using LogToOperations

Today I had to find out why errors of our SharePoint 2010 application were not showing up in the ULS log. We’re using the iLogger interface from SP Patterns & Practices to instantiate a Logger class, using the LogToOperations method to log to the EventViewer and the ULS log.

Unfortunately, no log entries ended up in the ULS log, despite the fact that they were showing up in the EventViewer. Turns out that you have to add the application pool account to the Performance Log Users group.

Another possibility is make sure the SPTraceV4 windows service is run under a managed account and add this account to the Performance Log Users group as this blog describes.

Geen opmerkingen: