Log directory is created prior to trying to write there.