print trace to file