Added call to create a log folder automatically