mkdir -p in logging