adding logging to a file