Created
June 5, 2014 08:21
-
-
Save ableasdale/40eaeeedbb81c69be65c to your computer and use it in GitHub Desktop.
Add MarkLogic Trace Events Programmatically
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "1.0-ml"; | |
import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; | |
declare variable $config := admin:get-configuration(); | |
let $config := admin:group-add-trace-event($config, admin:group-get-id($config, "Default"), | |
( | |
admin:group-trace-event("TRACE EVENT I"), | |
admin:group-trace-event("TRACE EVENT II"), | |
admin:group-trace-event("TRACE EVENT III") | |
) | |
) | |
return admin:save-configuration($config) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment