logging

logs to a log file so script can be debugged while ran in background