Change from log_dir to logfile