Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>There is a simpler alternative than SLF4J to bridge JUL with log4j, see <a href="http://people.apache.org/~psmith/logging.apache.org/sandbox/jul-log4j-bridge/examples.html" rel="nofollow noreferrer">http://people.apache.org/~psmith/logging.apache.org/sandbox/jul-log4j-bridge/examples.html</a></p> <p>You just have to put the jul-log4j-bridge on the classpath and add a system property:</p> <pre><code>-Djava.util.logging.manager=org.apache.logging.julbridge.JULBridgeLogManager </code></pre> <p>jul-log4j-bridge is not in Maven Central and can be fetched from this repository:</p> <pre><code>&lt;repository&gt; &lt;id&gt;psmith&lt;/id&gt; &lt;url&gt;http://people.apache.org/~psmith/logging.apache.org/repo&lt;/url&gt; &lt;releases&gt; &lt;enabled&gt;false&lt;/enabled&gt; &lt;/releases&gt; &lt;/repository&gt; </code></pre> <p>and then used with:</p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;org.apache.logging&lt;/groupId&gt; &lt;artifactId&gt;apache-jul-log4j-bridge&lt;/artifactId&gt; &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt; &lt;scope&gt;test&lt;/scope&gt; &lt;exclusions&gt; &lt;exclusion&gt; &lt;groupId&gt;log4j&lt;/groupId&gt; &lt;artifactId&gt;apache-log4j-component&lt;/artifactId&gt; &lt;/exclusion&gt; &lt;/exclusions&gt; &lt;/dependency&gt; </code></pre> <p>It's also possible to rebuild it from sources with the following steps:</p> <ol> <li>svn co <a href="http://svn.apache.org/repos/asf/logging/sandbox/jul-to-log4j-bridge/" rel="nofollow noreferrer">http://svn.apache.org/repos/asf/logging/sandbox/jul-to-log4j-bridge/</a></li> <li>edit pom.xml, replace the dependency on log4j:log4j:1.2.15 with log4j:apache-log4j-extras:1.2.17 and remove the dependency on apache-log4j-component</li> <li>mvn package</li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload