1. Install the log4jcore maven dependency 2. Install the log4japi maven dependency 3. Then write the below code just make sure you are importing the the packages just check while you are importing import these two only I have imported other log and faced some problem thats why i am saying package com.sandy; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; public class App { private static final Logger logger=LogManager.getLogger(App.class); public static void main(String[] args) { System.out.println("hello world"); logger.trace("this is the trace message"); logger.debug("this is the debug message"); logger.info("this is the info message"); logger.warn("this is the debug mes...