logfile -> log_file
logdir -> log_dir