Add exception support to traceLog