String msg = NLS.bind("Logger not found: {0}", loggerName);
return new ServerStatus(IStatus.ERROR,
HttpServletResponse.SC_NOT_FOUND, msg, null);
}
LoggerResource loggerResource = new LoggerResource();
loggerResource.setBaseLocation(baseLocation);
loggerResource.setName(logger.getName());
loggerResource.setLevel(logger.getLevel());
loggerResource.setEffectiveLevel(logger.getEffectiveLevel());
return new ServerStatus(Status.OK_STATUS,
HttpServletResponse.SC_OK, loggerResource.toJSON());
} catch (Exception e) {
String msg = NLS
.bind("An error occured when looking for logger: {0}",
loggerName);
return new ServerStatus(IStatus.ERROR,