Add getter for loggingQueries
work on query logging.