@Path(value="loggers") public interface LoggerService extends JAXRSService
PARAM_ANYTYPE_KIND, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_RESOURCE, PARAM_SIZE| Modifier and Type | Method and Description |
|---|---|
void |
delete(LoggerType type,
String name)
Deletes the logger with matching name.
|
List<EventCategoryTO> |
events()
Returns the list of all managed events in audit.
|
List<LogStatementTO> |
getLastLogStatements(String memoryAppender)
Return the last log statements available in the provided memory appender.
|
List<LoggerTO> |
list(LoggerType type)
Returns a list of loggers with matching type.
|
List<LogAppender> |
memoryAppenders()
Returns the list of memory appenders available in the current logging configuration.
|
LoggerTO |
read(LoggerType type,
String name)
Returns logger with matching type and name.
|
void |
update(LoggerType type,
LoggerTO logger)
Creates or updates (if existing) the logger with matching name.
|
@GET
@Path(value="memoryAppenders")
@Produces(value={"application/json","application/yaml","application/xml"})
List<LogAppender> memoryAppenders()
@GET
@Path(value="memoryAppenders/{memoryAppender}/lastLogStatements")
@Produces(value={"application/json","application/yaml","application/xml"})
List<LogStatementTO> getLastLogStatements(@NotNull @PathParam(value="memoryAppender")
String memoryAppender)
memoryAppender - memory appender name@GET
@Path(value="events")
@Produces(value={"application/json","application/yaml","application/xml"})
List<EventCategoryTO> events()
@GET
@Path(value="{type}/{name}")
@Produces(value={"application/json","application/yaml","application/xml"})
LoggerTO read(@NotNull @PathParam(value="type")
LoggerType type,
@NotNull @PathParam(value="name")
String name)
type - LoggerType to be selected.name - Logger name to be read@GET
@Path(value="{type}")
@Produces(value={"application/json","application/yaml","application/xml"})
List<LoggerTO> list(@NotNull @PathParam(value="type")
LoggerType type)
type - LoggerType to be selected@PUT
@Path(value="{type}/{key}")
@Consumes(value={"application/json","application/yaml","application/xml"})
@Produces(value={"application/json","application/yaml","application/xml"})
void update(@NotNull @PathParam(value="type")
LoggerType type,
@NotNull
LoggerTO logger)
type - LoggerType to be selectedlogger - Logger to be created or updated@DELETE
@Path(value="{type}/{name}")
@Produces(value={"application/json","application/yaml","application/xml"})
void delete(@NotNull @PathParam(value="type")
LoggerType type,
@NotNull @PathParam(value="name")
String name)
type - LoggerType to be selectedname - Logger name to be deletedCopyright © 2010–2019 The Apache Software Foundation. All rights reserved.