Another thing that would be potentially quite useful would be to capture the
detailed log messages, using something like:

System.Diagnostics.Trace.Listeners.Add(
    new System.Diagnostics.TextWriterTraceListener(