nerdexam
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)
  • A
    5% (2)
  • B
    2% (1)
  • C
    80% (33)
  • D
    12% (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.

Full 70-573 Practice