add logging in XWikiXWikiPreferences