title: How to add uuid to log4j for logging into file?
body: <p>I have this log4j2.xml file: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Configuration xmlns="http://logging.apache.org/log4j/2.0/config"&gt;
  &lt;Appenders&gt;
      &lt;File name="FILE" fileName="logfile.log" append="true"&gt;
          &lt;PatternLayout pattern="%p | [%t] %l | message : %m%n"/&gt;
      &lt;/File&gt;
      &lt;Console name="STDOUT" target="SYSTEM_OUT"&gt;
          &lt;PatternLayout pattern="%p | [%t] %l | message : %m%n"/&gt;
      &lt;/Console&gt;
  &lt;/Appenders&gt;
  &lt;/Configuration&gt;
  </code></pre>
  
  <p>And my goal is to add in the RestEndpoint a unique id with uuid, but i dont know how to add to the xml file...or i have to configure it not in an xml file?</p>