Class StructuredLogViewerResource
- java.lang.Object
-
- org.glassfish.admin.rest.resources.custom.StructuredLogViewerResource
-
public class StructuredLogViewerResource extends Object
REST resource to get Log records simple wrapper around internal LogFilter query class- Author:
- ludovic Champenois
-
-
Constructor Summary
Constructors Constructor Description StructuredLogViewerResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogNamesResource
getLogNamesResource()
LogRecordList
getRecords(String logFileName, long startIndex, boolean searchForward, int maximumNumberOfResults, boolean onlyLevel, long fromTime, long toTime, String logLevel, String anySearch, String listOfModules, String instanceName)
-
-
-
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
-
-