adding logging to file