Log4j2 replace pattern example. The following examples show how to use org.