You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rp...@apache.org on 2014/09/24 15:44:09 UTC
git commit: LOG4J2-856: added sections on the JUL Adapter,
IO Streams and NoSQL Appenders to the Maven and Ivy page.
Repository: logging-log4j2
Updated Branches:
refs/heads/master 83953ba28 -> 59238801b
LOG4J2-856: added sections on the JUL Adapter, IO Streams and NoSQL
Appenders to the Maven and Ivy page.
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/59238801
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/59238801
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/59238801
Branch: refs/heads/master
Commit: 59238801b908596abdf2cd1fbd401b924757662f
Parents: 83953ba
Author: rpopma <rp...@apache.org>
Authored: Wed Sep 24 22:44:09 2014 +0900
Committer: rpopma <rp...@apache.org>
Committed: Wed Sep 24 22:44:09 2014 +0900
----------------------------------------------------------------------
src/changes/changes.xml | 3 ++
src/site/xdoc/maven-artifacts.xml.vm | 81 ++++++++++++++++++++++++++++++-
2 files changed, 82 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/59238801/src/changes/changes.xml
----------------------------------------------------------------------
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index fcad236..15b32d4 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -24,6 +24,9 @@
</properties>
<body>
<release version="2.1" date="2014-??-??" description="Bug fixes and enhancements">
+ <action issue="LOG4J2-856" dev="rpopma" type="add">
+ Documentation: add sections on the JUL Adapter, IO Streams and NoSQL Appenders to the Maven and Ivy page.
+ </action>
<action issue="LOG4J2-797" dev="rpopma" type="fix" due-to="Andreas Rytina">
Documentation: clarified why log4j-core is a compile time dependency in Maven and Ivy page.
</action>
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/59238801/src/site/xdoc/maven-artifacts.xml.vm
----------------------------------------------------------------------
diff --git a/src/site/xdoc/maven-artifacts.xml.vm b/src/site/xdoc/maven-artifacts.xml.vm
index ab88756..85842cb 100644
--- a/src/site/xdoc/maven-artifacts.xml.vm
+++ b/src/site/xdoc/maven-artifacts.xml.vm
@@ -188,6 +188,32 @@ dependencies {
compile group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: '${Log4jReleaseVersion}'
}
]]></pre>
+ <h4>JUL Adapter</h4>
+ <p>If existing components use Java Util Logging and you want to have this logging routed to Log4j 2,
+ then add the following.
+ </p>
+ <code>pom.xml</code>
+ <pre class="prettyprint linenums"><![CDATA[
+<dependencies>
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-jul</artifactId>
+ <version>${Log4jReleaseVersion}</version>
+ </dependency>
+</dependencies>
+]]></pre>
+ <code>ivy.xml</code>
+ <pre class="prettyprint linenums"><![CDATA[
+<dependencies>
+ <dependency org="org.apache.logging.log4j" name="log4j-jul" rev="${Log4jReleaseVersion}" />
+</dependencies>
+]]></pre>
+ <code>build.gradle</code>
+ <pre class="prettyprint linenums"><![CDATA[
+dependencies {
+ compile group: 'org.apache.logging.log4j', name: 'log4j-jul', version: '${Log4jReleaseVersion}'
+}
+]]></pre>
<h4>Web Servlet Support</h4>
<p>
In order to properly support and handle the ClassLoader environment and container lifecycle of a web
@@ -296,8 +322,59 @@ dependencies {
compile group: 'org.apache.logging.log4j', name: 'log4j-to-slf4j', version: '${Log4jReleaseVersion}'
}
]]></pre>
- <!-- TODO: NoSQL dependencies -->
- <!-- TODO: JMS dependencies -->
+ <h4>NoSQL Appenders</h4>
+ <p>If your configuration uses one of the NoSQL Appenders, then add the following.
+ </p>
+ <code>pom.xml</code>
+ <pre class="prettyprint linenums"><![CDATA[
+<dependencies>
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-nosql</artifactId>
+ <version>${Log4jReleaseVersion}</version>
+ </dependency>
+</dependencies>
+]]></pre>
+ <code>ivy.xml</code>
+ <pre class="prettyprint linenums"><![CDATA[
+<dependencies>
+ <dependency org="org.apache.logging.log4j" name="log4j-nosql" rev="${Log4jReleaseVersion}" />
+</dependencies>
+]]></pre>
+ <code>build.gradle</code>
+ <pre class="prettyprint linenums"><![CDATA[
+dependencies {
+ compile group: 'org.apache.logging.log4j', name: 'log4j-nosql', version: '${Log4jReleaseVersion}'
+}
+]]></pre>
+ <h4>IO Streams</h4>
+ <p>Log4j IO Streams allow applications to have data that is written to an OutputStream
+ or a Writer be redirected to a Logger, or have data that is read from an InputStream or
+ a Reader be wiretapped by a Logger.
+ To use IO Streams, add the following.
+ </p>
+ <code>pom.xml</code>
+ <pre class="prettyprint linenums"><![CDATA[
+<dependencies>
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-iostreams</artifactId>
+ <version>${Log4jReleaseVersion}</version>
+ </dependency>
+</dependencies>
+]]></pre>
+ <code>ivy.xml</code>
+ <pre class="prettyprint linenums"><![CDATA[
+<dependencies>
+ <dependency org="org.apache.logging.log4j" name="log4j-iostreams" rev="${Log4jReleaseVersion}" />
+</dependencies>
+]]></pre>
+ <code>build.gradle</code>
+ <pre class="prettyprint linenums"><![CDATA[
+dependencies {
+ compile group: 'org.apache.logging.log4j', name: 'log4j-iostreams', version: '${Log4jReleaseVersion}'
+}
+]]></pre>
</subsection>
</section>
</body>