Updated persister companions to log all queries if configured with an appropriate logger