add trace.txt to support recording the exception log