Author: rgoers
Date: Sat Jul 21 23:54:29 2012
New Revision: 1364192
URL: http://svn.apache.org/viewvc?rev=1364192&view=rev
Log:
Add content to Using in Applications section
Added:
logging/log4j/log4j2/trunk/src/site/xdoc/build.xml.vm
- copied, changed from r1361607,
logging/log4j/log4j2/trunk/src/site/xdoc/build.xml
Removed:
logging/log4j/log4j2/trunk/src/site/xdoc/build.xml
Copied: logging/log4j/log4j2/trunk/src/site/xdoc/build.xml.vm (from r1361607,
logging/log4j/log4j2/trunk/src/site/xdoc/build.xml)
URL:
http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/src/site/xdoc/build.xml.vm?p2=logging/log4j/log4j2/trunk/src/site/xdoc/build.xml.vm&p1=logging/log4j/log4j2/trunk/src/site/xdoc/build.xml&r1=1361607&r2=1364192&rev=1364192&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/src/site/xdoc/build.xml (original)
+++ logging/log4j/log4j2/trunk/src/site/xdoc/build.xml.vm Sat Jul 21 23:54:29
2012
@@ -42,7 +42,24 @@
Applications that use Maven can retrieve the artifacts from the
Maven Central repository by using
</p>
<subsection name="Using In Applications">
-
+ <p>
+ To use Log4j 2 in your application make sure that both the API and
Core jars are in the application's
+ classpath. With Maven add the dependencies listed below to your
pom.xml.
+ </p>
+ <source><![CDATA[
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-api</artifactId>
+ <version>${Log4jReleaseVersion}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-core</artifactId>
+ <version>${Log4jReleaseVersion}</version>
+ </dependency>
+ </dependecies>
+ ]]></source>
</subsection>
</section>