Log trap status to file