Microsoft
70-573 · Question #24
You create a custom Web Part. You need to create a class to log Web Part errors to the Unified Logging Service (ULS) logs. What should you use?
The correct answer is C. the SPDiagnosticsServiceBase class. MNEMONIC RULE: "Unified Logging Service = SPDiagnosticsServiceBase" Logging to ULS in SharePoint 2010
Developing SharePoint Solutions
Question
You create a custom Web Part. You need to create a class to log Web Part errors to the Unified Logging Service (ULS) logs. What should you use?
Options
- Athe ILoggingProvider interface
- Bthe SPPersistedObject class
- Cthe SPDiagnosticsServiceBase class
- Dthe ILogger interface
How the community answered
(41 responses)- A5% (2)
- B2% (1)
- C80% (33)
- D12% (5)
Explanation
MNEMONIC RULE: "Unified Logging Service = SPDiagnosticsServiceBase" Logging to ULS in SharePoint 2010
Topics
#ULS logging#SPDiagnosticsServiceBase#error logging#diagnostics
Community Discussion
No community discussion yet for this question.