Added traceLog function

This will help us report server faults more accurately when communicating with the index/registry.

/cc @samalba