In comparison to the java.util.logging we don’t need to do any setup. By default, Log4j 2 will use the ConsoleAppender to jot down the log information on the console. The log file will probably be printed utilizing the PatternLayout connected to the described ConsoleAppander While using the pattern defined as follows: %d HH:mm:ss.It is possible t