add logging (to help find defects) with response to an environment variable, such as XTESTS_LOGGING_LOEVEL