Adds logging to file.