Microsoft Exam Questions

You need to create a class to log Web Part errors to the Unified Logging Service (ULS) logs

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?

A.
the ILoggingProvider interface

B.
the SPPersistedObject class

C.
the SPDiagnosticsServiceBase class

D.
the ILogger interface