initialze log directory