adding dir create to logger example