{{velocity}} #set ($logger = $services.logging.getLogger('debug')) $logger.warn('Execution of script present in XWiki.Logger') {{/velocity}}
The log contains twice the debug log "Execution of script present in XWiki.Logger" on each page view, while the log should be present just once.