The SDK comes with a built-in tracing mechanism. See Trace for more information and Trace Settings and Trace Levels in the section Configuration Schema for configuration options.