mirror of https://github.com/apache/maven.git
fixed typos
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1413425 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
614e7bd173
commit
567cd13787
|
@ -24,7 +24,7 @@ Maven Logging
|
||||||
|
|
||||||
Plexus Logger can be injected in Plexus component using Plexus annotations
|
Plexus Logger can be injected in Plexus component using Plexus annotations
|
||||||
|
|
||||||
+------
|
+------+
|
||||||
import org.codehaus.plexus.logging.Logger;
|
import org.codehaus.plexus.logging.Logger;
|
||||||
import org.codehaus.plexus.component.annotations.Component;
|
import org.codehaus.plexus.component.annotations.Component;
|
||||||
import org.codehaus.plexus.component.annotations.Requirement;
|
import org.codehaus.plexus.component.annotations.Requirement;
|
||||||
|
@ -36,20 +36,20 @@ public class DefaultMyComponent
|
||||||
@Requirement
|
@Requirement
|
||||||
private Logger logger;
|
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
|
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.
|
Maven 3.1.0, then this technique can be used safely only in Maven core components.
|
||||||
|
|
||||||
+-----
|
+-----+
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
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
|
* Logger Name
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue