You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2013/03/18 22:47:28 UTC

[32/50] git commit: added info about direct SLF4J use

added info about direct SLF4J use

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1412765 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/d3652236
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/d3652236
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/d3652236

Branch: refs/heads/master
Commit: d36522363f3c14d6414eaf799fd3fca79e201be1
Parents: 0cb6c4a 074667f
Author: Herve Boutemy <hb...@apache.org>
Authored: Fri Nov 23 07:17:37 2012 +0000
Committer: Herve Boutemy <hb...@apache.org>
Committed: Fri Nov 23 07:17:37 2012 +0000

----------------------------------------------------------------------
 maven-embedder/src/site/apt/logging.apt |   13 +++++++++++++
 pom.xml                                 |    9 +++++++++
 2 files changed, 22 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/d3652236/maven-embedder/src/site/apt/logging.apt
----------------------------------------------------------------------
diff --cc maven-embedder/src/site/apt/logging.apt
index e2830c4,e2830c4..2caf177
--- a/maven-embedder/src/site/apt/logging.apt
+++ b/maven-embedder/src/site/apt/logging.apt
@@@ -37,3 -37,3 +37,16 @@@ public class DefaultMyComponen
      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);
++}
+++-----