0

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"?

1 Answer 1

2

I think you cannot avoid the change in registry because.. Along with ULS logs the SharePoint also puts an entry into an event log. You can see your custom category into an event log also. And Windows stores Event Log categories in Registry.

A better way to do is to register it along with your FEATURE as documented here: http://jbaurle.wordpress.com/2011/01/16/how-to-implement-a-custom-sharepoint-2010-logging-service-for-uls-and-windows-event-log/

1
  • Note that the registry bit only needs to be done on Least Privilege configured systems. Some systems are set up that way, so it's good practice, but possibly not necessary on non-least privilege systems. And, in fact, as your calls to your Diagnostic Logging service are from OWSTIMER.exe (as it's a timer job) you might be able to get away without worrying about it ever. OWSTIMER is highly privileged. Still, the link above is the 'right' way to do it.
    – Andy Burns
    Commented Jun 16, 2011 at 8:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.