Apache Log4j 2 is really an enhance to Log4j that provides important enhancements about its predecessor, Log4j one.x, and delivers many of the advancements accessible in Logback whilst repairing some inherent troubles in Logback’s architecture.We even have two Loggers defined. We contain the root logger that appends the info to our File appender.