add logging to file