use a log file