Trace

Object –> Debug

Prefer ILogger over System.Diagnostics.Debug and System.Diagnostics.Trace.
Methods and properties to debug code.
This class can be used for both DEBUG and RELEASE compilation modes.