Understand that the Log4j 1.x is deprecated and not maintained, so when choosing the logging library of your respective selection you must go for Log4j 2.x.Last but not least, to offer the Marker to the Logger we use the suitable logging method of the Logger class and provide the marker as the 1st argument:You are able to emphasize just the a part