Class StructuredLogViewerResource


  • public class StructuredLogViewerResource
    extends Object
    REST resource to get Log records simple wrapper around internal LogFilter query class
    Author:
    ludovic Champenois
    • Field Detail

      • habitat

        protected org.glassfish.hk2.api.ServiceLocator habitat
      • injector

        @Context
        protected org.glassfish.hk2.api.ServiceLocator injector
    • Constructor Detail

      • StructuredLogViewerResource

        public StructuredLogViewerResource()
    • Method Detail

      • getLogNamesResource

        @Path("lognames/")
        public LogNamesResource getLogNamesResource()
      • getRecords

        @GET
        @Produces({"application/json","application/xml"})
        public LogRecordList getRecords​(@QueryParam("logFileName") @DefaultValue("${com.sun.aas.instanceRoot}/logs/server.log")
                                        String logFileName,
                                        @QueryParam("startIndex") @DefaultValue("-1")
                                        long startIndex,
                                        @QueryParam("searchForward") @DefaultValue("false")
                                        boolean searchForward,
                                        @QueryParam("maximumNumberOfResults") @DefaultValue("40")
                                        int maximumNumberOfResults,
                                        @QueryParam("onlyLevel") @DefaultValue("false")
                                        boolean onlyLevel,
                                        @QueryParam("fromTime") @DefaultValue("-1")
                                        long fromTime,
                                        @QueryParam("toTime") @DefaultValue("-1")
                                        long toTime,
                                        @QueryParam("logLevel") @DefaultValue("INFO")
                                        String logLevel,
                                        @QueryParam("anySearch") @DefaultValue("")
                                        String anySearch,
                                        @QueryParam("listOfModules")
                                        String listOfModules,
                                        @QueryParam("instanceName") @DefaultValue("")
                                        String instanceName)
                                 throws IOException
        Throws:
        IOException