Add debug tracing module

This provides a single point for a user to specify a debug logging target.