Add Func<object, string> to Debug, and Trace