use log file.