Add logging to a file