In Log4j two, custom made log degrees can easily be defined in code or in configuration. No subclassing is needed.The two the application and components give us a explore how They can be Performing in the form of parametrized logs enriched with contextual details.You can even use MulticolorLayout course in conjunction with log4j’s ConsoleAppender