<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>Hello, World Application Index File</title>
</head>
<body>
<a href="hello-world">Present the Hello World Input Form...</a><br>
Java runtime version: <%= System.getProperty("java.version") %>
</body>
</html>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.19.0</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.19.0</version>
</dependency>
appenders=xyz
appender.xyz.type=Console
appender.xyz.name=myOutput
appender.xyz.layout.type=PatternLayout
appender.xyz.layout.pattern=[%d{yy-MMM-dd HH:mm:ss:SSS}] [%p] [%c{1}:%L] - %m%n
rootLogger.level=debug
rootLogger.appenderRefs=abc
rootLogger.appenderRef.abc.ref=myOutput
private static Logger LOGGER = LogManager.getLogger(HelloWorldServlet.class);
LOGGER.info("Servlet " + this.getServletName() + " has started.");
LOGGER.info("Servlet " + this.getServletName() + " has stopped.");