You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@onami.apache.org by gr...@apache.org on 2012/12/05 10:21:57 UTC
svn commit: r1417325 - in /incubator/onami/trunk/logging/src/site:
apt/log4j2.apt.vm site.xml
Author: grobmeier
Date: Wed Dec 5 09:21:57 2012
New Revision: 1417325
URL: http://svn.apache.org/viewvc?rev=1417325&view=rev
Log:
created docs for log4j2
Added:
incubator/onami/trunk/logging/src/site/apt/log4j2.apt.vm
- copied, changed from r1417323, incubator/onami/trunk/logging/src/site/apt/log4j.apt.vm
Modified:
incubator/onami/trunk/logging/src/site/site.xml
Copied: incubator/onami/trunk/logging/src/site/apt/log4j2.apt.vm (from r1417323, incubator/onami/trunk/logging/src/site/apt/log4j.apt.vm)
URL: http://svn.apache.org/viewvc/incubator/onami/trunk/logging/src/site/apt/log4j2.apt.vm?p2=incubator/onami/trunk/logging/src/site/apt/log4j2.apt.vm&p1=incubator/onami/trunk/logging/src/site/apt/log4j.apt.vm&r1=1417323&r2=1417325&rev=1417325&view=diff
==============================================================================
--- incubator/onami/trunk/logging/src/site/apt/log4j.apt.vm (original)
+++ incubator/onami/trunk/logging/src/site/apt/log4j2.apt.vm Wed Dec 5 09:21:57 2012
@@ -1,5 +1,5 @@
------
- Apache log4j 1.x
+ Apache log4j 2.x
------
The Apache Onami Team
------
@@ -22,7 +22,7 @@
~~ limitations under the License.
~~
-Apache log4j 1.x
+Apache log4j 2.x
Users that want to use the <Apache log4j 1.x> package and let <Guice>
injects automagically <<<org.apache.log4j.Logger>>> instances, have to add
@@ -31,14 +31,14 @@ Apache log4j 1.x
+--------------------------------------+
<dependency>
<groupId>org.apache.onami.logging</groupId>
- <artifactId>onami-logging-log4j</artifactId>
+ <artifactId>onami-logging-log4j2</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
+--------------------------------------+
then, when creating the <<<com.google.inject.Injector>>>, add the
- <<<org.apache.onami.logging.log4j.Log4jLoggingModule>>> module; please take note
+ <<<org.apache.onami.logging.log4j2.Log4jLoggingModule>>> module; please take note
that users have to specify the classes <<<com.google.inject.matcher.Matcher>>>
for whom the logging injection has to be applied:
@@ -46,12 +46,12 @@ Apache log4j 1.x
import com.google.inject.Guice;
import com.google.inject.Injector;
-import org.apache.onami.logging.log4j.Log4jLoggingModule;
+import org.apache.onami.logging.log4j2.Log4j2LoggingModule;
import com.google.inject.matcher.Matchers;
...
-Injector injector = Guice.createInjector( new Log4jLoggingModule( Matchers.any() ),
+Injector injector = Guice.createInjector( new Log4j2LoggingModule( Matchers.any() ),
...
);
+--------------------------------------+
Modified: incubator/onami/trunk/logging/src/site/site.xml
URL: http://svn.apache.org/viewvc/incubator/onami/trunk/logging/src/site/site.xml?rev=1417325&r1=1417324&r2=1417325&view=diff
==============================================================================
--- incubator/onami/trunk/logging/src/site/site.xml (original)
+++ incubator/onami/trunk/logging/src/site/site.xml Wed Dec 5 09:21:57 2012
@@ -27,10 +27,11 @@
<body>
<menu name="Apache Onami⢠Logging">
<item name="Home" href="./index.html" />
- <item name="JULI" href="./juli.html" />
- <item name="Apache Commons Logging" href="./acl.html" />
- <item name="Apache log4j" href="./log4j.html" />
+ <item name="Apache log4j 2.x" href="./log4j2.html" />
+ <item name="Apache log4j 1.x" href="./log4j.html" />
<item name="Simple Logging Facade for Java" href="./slf4j.html" />
+ <item name="Apache Commons Logging" href="./acl.html" />
+ <item name="JULI" href="./juli.html" />
<item name="Extend Onami Logging" href="./extend.html" />
<item name="API docs" href="./apidocs/index.html" />
<item name="Apache Onami" href="http://onami.incubator.apache.org" />