In Log4j two, custom made log amounts can easily be defined in code or in configuration. No subclassing is needed.You may modify your configuration file as a way to change the sample layout format with the fields which that you are throwing as output.It is possible to emphasize just the a percentage of the log event: %d [%t] %emphasize %-5level: %m