You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2012/11/25 22:23:34 UTC
svn commit: r1413425 -
/maven/maven-3/trunk/maven-embedder/src/site/apt/logging.apt
Author: hboutemy
Date: Sun Nov 25 21:23:34 2012
New Revision: 1413425
URL: http://svn.apache.org/viewvc?rev=1413425&view=rev
Log:
fixed typos
Modified:
maven/maven-3/trunk/maven-embedder/src/site/apt/logging.apt
Modified: maven/maven-3/trunk/maven-embedder/src/site/apt/logging.apt
URL: http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-embedder/src/site/apt/logging.apt?rev=1413425&r1=1413424&r2=1413425&view=diff
==============================================================================
--- maven/maven-3/trunk/maven-embedder/src/site/apt/logging.apt (original)
+++ maven/maven-3/trunk/maven-embedder/src/site/apt/logging.apt Sun Nov 25 21:23:34 2012
@@ -24,7 +24,7 @@ Maven Logging
Plexus Logger can be injected in Plexus component using Plexus annotations
-+------
++------+
import org.codehaus.plexus.logging.Logger;
import org.codehaus.plexus.component.annotations.Component;
import org.codehaus.plexus.component.annotations.Requirement;
@@ -36,20 +36,20 @@ public class DefaultMyComponent
@Requirement
private Logger logger;
}
-+------
++------+
Starting with Maven 3.1.0, SLF4J Logger can be used directly too, without Plexus. Of course, this will only work when run under
Maven 3.1.0, then this technique can be used safely only in Maven core components.
-+-----
++-----+
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public class Wombat
+public class MyClass
{
- final Logger logger = LoggerFactory.getLogger(Wombat.class);
+ final Logger logger = LoggerFactory.getLogger( MyClass.class );
}
-+-----
++-----+
* Logger Name