Home » Microsoft » 70-489 » Which items should you implement?
You need to implement logging.
Which items should you implement?
(Each correct answer presents a complete solution. Choose all that apply)
A. SPDiagnosticsServiceBase.WriteEvent
B. Microsoft.SharePoint.Diagnostics.ULSLogEntry
C. SPUserSid
D. PortalLog.LogString
E. SPAlertTemplate
F. SPSecurity.RunWithElevatedPrivileges
Correct Answer: AB
Explanation/Reference:
A: EventLog.WriteEvent method writes a localized event entry to the event log.
D: PortalLog and its members are reserved for internal use and are not intended to be used in your code.
F: The SPSecurity.RunWithElevatedPrivileges executes the specified method with Full Control rights even if the user does not otherwise have Full Control.
http://msdn.microsoft.com/en-us/library/system.diagnostics.eventlog.writeevent%28v=vs.110%29.aspx
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.diagnostics.ulslogentry.aspx
From Scenario
You design an application framework. The framework is used by other developers on the team. The framework must include entry points that are used to log errors and exceptions You need the entry points.