You can annotate RESTful client interfaces that are used for RESTEasy Client Proxies (interfaces with JAX-RS
annotations).
@Path("/users")
@LogIt(label = "USER SERVICE CLIENT")
public interface UserService {
@GET
@Produces("application/json")
@Path("/{id}")
User getUser(@PathParam("id") int id);
@POST
@Consumes("application/json")
@Produces("application/json")
User createUser(User user);
@PUT
@Consumes("application/json")
@Produces("application/json")
@Path("/{id}")
User updateUser(@PathParam("id") int id, User user);
}
LogIt
can be used for the whole interface or for certain methods. See LogIt annotation priorities