created tSetupAccessLogger() and tSetupQueryLogger() functions.