0
votes
1answer
2k views

SPDiagnosticsService.WriteTrace throws error “Object reference not set to an instance of an object”

I am trying to write entries into logging and have trouble doing so. Using Client object model on SharePoint foundation. Code is running from a console app. SPDiagnosticsService.Local.WriteTrace(0, ...
2
votes
2answers
3k views

ULS is not logging from web app

This is similar to "http://sharepoint.stackexchange.com/questions/2057/how-to-write-to-uls-log-in-sharepoint-2010-from-a-net-app". But in my case, logs are NOT showing up in ULS when logging from a ...
1
vote
1answer
353 views

SPDiagnosticsService Area collection vs Areas in CA

In CA, Diagnostic Logging, a lot of areas with their categories are listed. When I enumerate these area's in code only three are returned: Business Connectivity Services SharePoint Foundation ...
0
votes
1answer
203 views

Possible to add a section to the “Diagnostic Logging” section for a custom timer job?

I found this post but at the end it suggests making changes to the registry which scares me a little bit. Is there a better way to do this? Is modifying the registry in this case "normal"?