mirror of https://github.com/apache/maven.git
added Plexus LoggerManager injection
This commit is contained in:
parent
d32fb267b2
commit
5ccb925067
|
@ -22,7 +22,7 @@ Maven Logging
|
||||||
|
|
||||||
* Getting Logger Instance
|
* Getting Logger Instance
|
||||||
|
|
||||||
Plexus Logger can be injected in Plexus component using Plexus annotations
|
Plexus Logger and LoggerManager can be injected in Plexus component using Plexus annotations
|
||||||
|
|
||||||
+------+
|
+------+
|
||||||
import org.codehaus.plexus.logging.Logger;
|
import org.codehaus.plexus.logging.Logger;
|
||||||
|
@ -35,6 +35,9 @@ public class DefaultMyComponent
|
||||||
{
|
{
|
||||||
@Requirement
|
@Requirement
|
||||||
private Logger logger;
|
private Logger logger;
|
||||||
|
|
||||||
|
@Requirement
|
||||||
|
private LoggerManager loggerManager;
|
||||||
}
|
}
|
||||||
+------+
|
+------+
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue