@@ -0,0 +1,1015 @@
+package com.google.sps.servlets;%0A%0Aimport java.io.IOException;%0Aimport javax.servlet.annotation.WebServlet;%0Aimport javax.servlet.http.HttpServlet;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0A%0Aimport org.apache.logging.log4j.LogManager;%0Aimport org.apache.logging.log4j.Logger;%0A%0A@WebServlet(%22/logger%22)%0Apublic class HelloInLog4J2 extends HttpServlet %7B%0A%0A    private static final Logger logger = LogManager.getLogger(HelloInLog4J2.class);%0A    @Override%0A    public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException %7B%0A        System.out.println(%22------------------------------------------------%22);%0A        logger.debug(%22This is a debug message%22);%0A        logger.info(%22This is an info message%22);%0A        logger.warn(%22This is a warn message%22);%0A        logger.error(%22This is an error message%22);%0A        logger.fatal(%22This is a fatal message%22);%0A        logger.trace(%22This is a trace message%22);%0A        //logs location is target/logs%0A    %7D%0A%7D

add trace statement, rename class