package org.itevents.controller;

import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import org.apache.logging.log4j.LogManager;


@Controller
@RequestMapping("/")
public class IndexController {

	public static final Logger log = LogManager.getLogger(IndexController.class);

	@RequestMapping(method = RequestMethod.GET)
	public String printWelcome(ModelMap model) {
		log.info("=====>>>>> TEST LOG4J INTO CONSOLE <<<<<=====");
		log.debug("=====>>>>> TEST LOG4J INTO DEBUG.LOG <<<<<=====");

		model.addAttribute("message1", "IT Events web application");
		model.addAttribute("message2", "Sorry, we are under construction");
		return "index";
	}
}
@@ -31,48 +31,8 @@
 r;%0A%0A
-import org.apache.logging.log4j.Logger;%0A
 impo
@@ -77,16 +77,16 @@
 roller;%0A
+
 import o
@@ -247,54 +247,8 @@
 d;%0A%0A
-import org.apache.logging.log4j.LogManager;%0A%0A%0A
 @Con
@@ -312,88 +312,8 @@
  %7B%0A%0A
-%09public static final Logger log = LogManager.getLogger(IndexController.class);%0A%0A
 %09@Re
@@ -403,134 +403,8 @@
 ) %7B%0A
-%09%09log.info(%22=====%3E%3E%3E%3E%3E TEST LOG4J INTO CONSOLE %3C%3C%3C%3C%3C=====%22);%0A%09%09log.debug(%22=====%3E%3E%3E%3E%3E TEST LOG4J INTO DEBUG.LOG %3C%3C%3C%3C%3C=====%22);%0A%0A
 %09%09mo
@@ -553,9 +553,10 @@
 ex%22;%0A%09%7D%0A
-
 %7D
+%0A

Update IndexController.java