Log tracebacks to file