Skip to content

Instantly share code, notes, and snippets.

@michaelsanford
Created February 26, 2020 18:17
Show Gist options
  • Save michaelsanford/473ee311f8d8703ee2cd7760be98e5e8 to your computer and use it in GitHub Desktop.
Save michaelsanford/473ee311f8d8703ee2cd7760be98e5e8 to your computer and use it in GitHub Desktop.
Log a request payload
@POST
@Path("/")
public Object something(String json)
{
Logger logger = Logger.getLogger(this.getClass().getName());
logger.log(Level.INFO, json);
return Response.ok().build();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment