admin.groupSetTelemetryLogLevel( config as element(configuration), group-id as xs.unsignedLong, value as String ) as element(configuration)
This function sets the initial log level for telemetry, which is also the maximum (finest) log level that will be sent.
const admin = require('/MarkLogic/admin.xqy'); var config = admin.getConfiguration() var spec = admin.groupSetTelemetryLogLevel(config, xdmp.group(), admin.groupGetFileLogLevel(config,xdmp.group() )) return admin.saveConfiguration(spec) //sets the telemetry log level to match the server's file log level