Compared to the java.util.logging we don’t need to do any setup. By default, Log4j two will make use of the ConsoleAppender to put in writing the log information into the console. The log history are going to be printed utilizing the PatternLayout attached into the stated ConsoleAppander While using the pattern described as follows: %d HH:mm:ss.A