In comparison to the java.util.logging we don’t must do any setup. By default, Log4j 2 will make use of the ConsoleAppender to write down the log concept into the console. The log history might be printed using the PatternLayout hooked up on the mentioned ConsoleAppander Together with the sample described as follows: %d HH:mm:ss.The value in the