diff --git a/maven-embedder/src/site/apt/logging.apt b/maven-embedder/src/site/apt/logging.apt index e2830c4c88..2caf177579 100644 --- a/maven-embedder/src/site/apt/logging.apt +++ b/maven-embedder/src/site/apt/logging.apt @@ -37,3 +37,16 @@ public class DefaultMyComponent 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 +{ + final Logger logger = LoggerFactory.getLogger(Wombat.class); +} ++-----