To log the payload of changes to the schedulers, the RequestLogger can be used.
Make sure to instantiate the RequestLoggingConsumer by calling
RequestLoggingConsumer requestLoggingConsumer = new RequestLoggingConsumer(vertx, loggingResourceManager);
To enable the logging of the schedulers, make sure the url to the schedulers is enabled in the logging resource.
Example:
{
"headers": [],
"payload": {
"filters": [
{
"url": "/playground/server/admin/v1/schedulers",
"method": "PUT"
}
]
}
}
Also you have to enable the logging on the SchedulerResourceManager by calling
schedulerResourceManager.enableResourceLogging(true);