init logfile
ignore logdir