added logging to log dir creation