add logging to log file