change log behavior to write log in one file