auto-generate logfile directories