Package org.eclipse.orion.server.logs.objects

Examples of org.eclipse.orion.server.logs.objects.LoggerResource.toJSON()


      loggerResource.setBaseLocation(baseLocation);
      loggerResource.setName(logger.getName());
      loggerResource.setLevel(logger.getLevel());
      loggerResource.setEffectiveLevel(logger.getEffectiveLevel());

      JSONObject result = loggerResource.toJSON();
      OrionServlet.writeJSONResponse(request, response, result);
      response.setHeader(ProtocolConstants.HEADER_LOCATION,
          result.getString(ProtocolConstants.KEY_LOCATION));
      return true;
View Full Code Here


      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,
View Full Code Here

        loggerResource.setName(logger.getName());
        loggerResource.setLevel(logger.getLevel());
        loggerResource.setEffectiveLevel(logger.getEffectiveLevel());

        loggersJSON.append(ProtocolConstants.KEY_CHILDREN,
            loggerResource.toJSON());
      }

      return new ServerStatus(Status.OK_STATUS,
          HttpServletResponse.SC_OK, loggersJSON);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.