XWIKI-9880: Add helper method to create a log tree in logging ScriptService