Which of the following is used to write error message in event Log File ?

Which of the following is used to write error message in event Log File ?

A. System.EnterpriseServices
B. System.Diagnostics
C. System.Data
D. All of the above