<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    This would probably a better conversion on the forum,
    <a class="moz-txt-link-freetext" href="https://community.jboss.org/en/wildfly/content">https://community.jboss.org/en/wildfly/content</a>. WildFly does not
    currently provide log4j2 and no longer uses jboss-logging-log4j.<br>
    <br>
    <div class="moz-cite-prefix">On 07/11/2014 07:32 AM, Petar Tahchiev
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAKnbemXj-a9OEi-Tk5W3ysH11qZ_5S3RPw-p-gD06TEp=Hqhdw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi guys,<br>
        <br>
        I'm reposting this from hibernate-dev following the advice I was
        given there.<br>
-----------------------------------------------------------------------------------------------------------<br>
        So here's my question. I'm reading this issue:
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br>
        </div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a
            moz-do-not-send="true"
            href="https://issues.jboss.org/browse/JBLOGGING-95"
            target="_blank">https://issues.jboss.org/browse/JBLOGGING-95</a></div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br>
        </div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">and
          I'm trying to make my hibernate use log4j2. So far I had&nbsp;</div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br>
        </div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">&lt;dependency&gt;</div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">&nbsp;
          &nbsp; &lt;groupId&gt;org.jboss.logging&lt;/groupId&gt;<br>
          &nbsp; &nbsp; &lt;artifactId&gt;jboss-logging-log4j&lt;/artifactId&gt;<br>
          &nbsp; &nbsp; &nbsp;&lt;version&gt;${jboss.logging.version}&lt;/version&gt;<br>
        </div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">&lt;/dependency&gt;</div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br>
        </div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">and
          I have log4j -&gt; log4j2 routed. Unfortunately now my
          hibernate creates a log4j.log file and log4j prints the
          messages to the command line (still no log4j2) :(</div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br>
        </div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">So
          I got rid of this dependency and I added the jboss-logging. So
          now here's my set of jars:</div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br>
        </div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">hibernate-core</div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">hibernate-entitymanager</div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">hibernate-c3p0</div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">hibernate-validator</div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">log4j2</div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">org.jboss.logging:jboss-logging:jar:3.2.0.Beta1<br>
        </div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br>
        </div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">then
          I run my task and I get performance of:</div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
          <div>[INFO]
            ------------------------------------------------------------------------</div>
          <div>[INFO] BUILD SUCCESS</div>
          <div>[INFO]
            ------------------------------------------------------------------------</div>
          <div>[INFO] Total time: 3:12.951s</div>
          <div>[INFO] Finished at: Fri Jul 11 12:50:41 EEST 2014</div>
          <div>[INFO] Final Memory: 128M/508M</div>
          <div>[INFO]
            ------------------------------------------------------------------------</div>
        </div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br>
        </div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">3
          minutes and 12 seconds. Performance is quite good. However I
          use the maven enforcer plugin and maven did warn me I have
          duplicate classes:</div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br>
        </div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
          <div>Duplicate classes found:</div>
          <div><br>
          </div>
          <div>&nbsp; Found in:</div>
          <div>&nbsp; &nbsp; org.jboss.logging:jboss-logging:jar:3.1.3.GA:compile</div>
          <div>&nbsp; &nbsp;
            org.jboss.logging:jboss-logging:jar:3.2.0.Beta1:compile</div>
          <div>&nbsp; Duplicate classes:</div>
          <div>&nbsp; &nbsp; org/jboss/logging/Field.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/LoggerProvider.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/Log4jLoggerProvider.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/NDC.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/MessageBundle.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/AbstractMdcLoggerProvider.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/Log4jLogger$1.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/Messages$1.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/JDKLevel.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/DelegatingBasicLogger.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/JDKLoggerProvider.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/Slf4jLoggerProvider.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/LoggingClass.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/Messages.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/AbstractLoggerProvider.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/Property.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/JBossLogRecord.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/SerializedLogger.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/Message.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/MDC.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/Message$Format.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/JBossLogManagerProvider$1.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/Cause.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/Param.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/JDKLogger$1.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/JBossLogManagerLogger.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/Slf4jLogger.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/JBossLogManagerProvider.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/FormatWith.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/Slf4jLocationAwareLogger$1.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/Logger$Level.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/BasicLogger.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/Logger$1.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/JDKLogger.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/JBossLogManagerLogger$1.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/MessageLogger.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/ParameterConverter.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/Logger.class</div>
          <div>
            &nbsp; &nbsp; org/jboss/logging/Slf4jLocationAwareLogger.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/Log4jLogger.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/LoggerProviders$1.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/Slf4jLogger$1.class</div>
          <div>
            &nbsp; &nbsp; org/jboss/logging/AbstractLoggerProvider$Entry.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/LogMessage.class</div>
          <div>&nbsp; &nbsp; org/jboss/logging/LoggerProviders.class</div>
        </div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br>
        </div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">I
          excluded the jboss-logging from all hibernate dependencies
          like this:</div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
          <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;dependency&gt;</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;groupId&gt;org.hibernate&lt;/groupId&gt;</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            &lt;version&gt;${hibernate.validator.version}&lt;/version&gt;</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;exclusions&gt;</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;exclusion&gt;</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            &lt;groupId&gt;org.jboss.logging&lt;/groupId&gt;</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            &lt;artifactId&gt;jboss-logging&lt;/artifactId&gt;</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/exclusion&gt;</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/exclusions&gt;</div>
          <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/dependency&gt;</div>
        </div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br>
        </div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">No
          more duplicate classes :) . I run the same task again and
          here's the performance:</div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br>
        </div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
          <div>[INFO]
            ------------------------------------------------------------------------</div>
          <div>[INFO] BUILD SUCCESS</div>
          <div>[INFO]
            ------------------------------------------------------------------------</div>
          <div>[INFO] Total time: 1:30:04.829s</div>
          <div>[INFO] Finished at: Fri Jul 11 12:28:08 EEST 2014</div>
          <div>[INFO] Final Memory: 118M/512M</div>
          <div>[INFO]
            ------------------------------------------------------------------------</div>
        </div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br>
        </div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">1
          hour and 30 minutes and 4 seconds!!!!!! OMG :X How could this
          be??? And on top of this no Log4j messages are coming through
          :(<br>
        </div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br>
        </div>
        <div
style="color:rgb(34,34,34);font-family:arial;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">This
          is probably a bug or I'm clearly missing how to setup
          Hibernate and LOG4J2. Can you please help me, or at least
          point me to a forum or mailing list where I can post this.</div>
        <div class="">
          <div id=":417" class="" tabindex="0"><img
              moz-do-not-send="true" class=""
              src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"><br>
---------------------------------------------------------------------------------------------------------<br>
          </div>
        </div>
        <div><br>
          -- <br>
          Regards, Petar!<br>
          Karlovo, Bulgaria.<br>
          ---<br>
          Public PGP Key at: <a moz-do-not-send="true"
href="https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611"
            target="_blank">https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611</a><br>
          Key Fingerprint: A369 A7EE 61BC 93A3 CDFF&nbsp; 55A5 1965 8550 C311
          0611
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
wildfly-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/wildfly-dev">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a></pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
James R. Perkins
JBoss by Red Hat</pre>
  </body>
</html>