how to save the can trace messages into a log file