70-489 · Question #56
You need to implement logging. Which items should you implement? (Each correct answer presents a complete solution. Choose all that apply.)
The correct answer is A. SPDiagnosticsServiceBase.WriteEvent B. Microsoft.SharePoint.Diagnostics.ULSLogEntry. EventLog.WriteEvent method writes a localized event entry to the event log. PortalLog and its members are reserved for internal use and are not intended to be used in your us/library/system.diagnostics.eventlog.writeevent%28v=vs.110%29.aspx You design an application framework…
Question
You need to implement logging. Which items should you implement? (Each correct answer presents a complete solution. Choose all that apply.)
Options
- ASPDiagnosticsServiceBase.WriteEvent
- BMicrosoft.SharePoint.Diagnostics.ULSLogEntry
- CSPUser.Sid
- DPortalLog.LogString
- ESPAlertTemplate
- FSPSecurity.RunWithElevatedPrivileges
How the community answered
(54 responses)- A72% (39)
- C2% (1)
- D4% (2)
- E7% (4)
- F15% (8)
Explanation
EventLog.WriteEvent method writes a localized event entry to the event log. PortalLog and its members are reserved for internal use and are not intended to be used in your us/library/system.diagnostics.eventlog.writeevent%28v=vs.110%29.aspx 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.
Topics
Community Discussion
No community discussion yet for this question.