class MessageLoggingStatusServlet extends HttpServlet {

    @Override
    protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {
        resp.setContentType("application/json");
        PrintWriter out = resp.getWriter();
        boolean requestLogOn = messageLoggingToggle.isRequestLoggingOn();
        boolean responseLogOn = messageLoggingToggle.isResponseLoggingOn();
        out.write("{\"requestLogging\":" + requestLogOn + ",\"responseLogging\":" + responseLogOn + "}");
        out.flush();
        out.close();
    }

    @Autowired public  MessageLoggingStatusServlet(MessageLoggingToggle messageLoggingToggle);

}