Compared to the java.util.logging we don’t need to do any set up. By default, Log4j 2 will make use of the ConsoleAppender to write the log concept on the console. The log document will probably be printed utilizing the PatternLayout attached on the talked about ConsoleAppander With all the pattern described as follows: %d HH:mm:ss.For instance,