how to get api request type in log messages spring log4j code example
Example: spring login response data
String responseToClient= "3849303 ";
httpServletResponse.setStatus(HttpServletResponse.SC_OK);
httpServletResponse.getWriter().write(responseToClient);
httpServletResponse.getWriter().flush();