Addition of delegate logging/tracing debugging functionality.
Merged in todo006 debugging tracing.