String level, TimeConstraints timeConstraints) throws SimpleException {
ctx.setRequestLogExtension(new BaselineLogExtension(logName + ": " + level, null, null));
ctx.trace("Starting changeLogLevel to %s", level);
SimpleResponse response = new SimpleResponse();
if ((logName==null) || (logName.equalsIgnoreCase("")) || (logName.equalsIgnoreCase("service"))) {
loggingControl.setLogLevel(LOGGER.getLogName(), level, false);
response.setMessage("Service logging level set at " + level);
} else {
loggingControl.setLogLevel(logName, level, false);
response.setMessage(logName + " logging level set at " + level);
}
LOGGER.log(Level.WARNING, "A warning message");
LOGGER.log(Level.INFO, "A warning message");