You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2017/06/13 05:52:27 UTC

svn commit: r1013962 - in /websites/production/struts/content: css/custom.css getting-started/how-to-create-a-struts2-web-application.html

Author: lukaszlenart
Date: Tue Jun 13 05:52:27 2017
New Revision: 1013962

Log:
Updates production

Modified:
    websites/production/struts/content/css/custom.css
    websites/production/struts/content/getting-started/how-to-create-a-struts2-web-application.html

Modified: websites/production/struts/content/css/custom.css
==============================================================================
--- websites/production/struts/content/css/custom.css (original)
+++ websites/production/struts/content/css/custom.css Tue Jun 13 05:52:27 2017
@@ -29,6 +29,7 @@ a.anchor {
   margin-top: -94px;
   visibility: hidden;
 }
+
 .edit-on-gh {
   position: absolute;
   right: 0;

Modified: websites/production/struts/content/getting-started/how-to-create-a-struts2-web-application.html
==============================================================================
--- websites/production/struts/content/getting-started/how-to-create-a-struts2-web-application.html (original)
+++ websites/production/struts/content/getting-started/how-to-create-a-struts2-web-application.html Tue Jun 13 05:52:27 2017
@@ -265,10 +265,15 @@ you do not need to specify a separate de
     <span class="nt">&lt;artifactId&gt;</span>log4j-core<span class="nt">&lt;/artifactId&gt;</span>
     <span class="nt">&lt;version&gt;</span>2.8.2<span class="nt">&lt;/version&gt;</span>
 <span class="nt">&lt;/dependency&gt;</span>
+<span class="nt">&lt;dependency&gt;</span>
+    <span class="nt">&lt;groupId&gt;</span>org.apache.logging.log4j<span class="nt">&lt;/groupId&gt;</span>
+    <span class="nt">&lt;artifactId&gt;</span>log4j-api<span class="nt">&lt;/artifactId&gt;</span>
+    <span class="nt">&lt;version&gt;</span>2.8.2<span class="nt">&lt;/version&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
 </code></pre>
 </div>
 
-<p>Setup a <code class="highlighter-rouge">log4j2.xml</code> configuration in the <code class="highlighter-rouge">src/main/resources</code> folder which contains the following</p>
+<p>Using both <code class="highlighter-rouge">log4j-core</code> and <code class="highlighter-rouge">log4j-api</code> allows to use the latest version of Log4j2 without a clash with version provided by the framework. Setup a <code class="highlighter-rouge">log4j2.xml</code> configuration in the <code class="highlighter-rouge">src/main/resources</code> folder which contains the following</p>
 
 <p><strong>log4j2.xml</strong></p>