Made logger write to file.