You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by mi...@apache.org on 2015/11/11 11:25:34 UTC

[07/16] logging-log4j2 git commit: FAQ improvements.

FAQ improvements.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/02e954c8
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/02e954c8
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/02e954c8

Branch: refs/heads/LOG4J-1181
Commit: 02e954c8972a8023553614230f0ac0e5a483a790
Parents: febe3db
Author: rpopma <rp...@apache.org>
Authored: Wed Nov 11 13:43:58 2015 +0900
Committer: rpopma <rp...@apache.org>
Committed: Wed Nov 11 13:43:58 2015 +0900

----------------------------------------------------------------------
 src/site/xdoc/faq.xml | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/02e954c8/src/site/xdoc/faq.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/faq.xml b/src/site/xdoc/faq.xml
index 12f6290..7c4aa87 100644
--- a/src/site/xdoc/faq.xml
+++ b/src/site/xdoc/faq.xml
@@ -25,6 +25,8 @@
     <body>
       <section name="Frequently Asked Questions">
       <ul>
+      <li><a href="#missing_core">I'm seeing this error "Unable to locate a logging implementation, using SimpleLogger".
+          What is wrong?</a></li>
       <li><a href="#which_jars">Which JAR files do I need?</a></li>
       <li><a href="#config_location">How do I specify the configuration file location?</a></li>
       <li><a href="#config_from_code">How do I configure log4j2 in code without a configuration file?</a></li>
@@ -39,7 +41,13 @@
       -->
       </ul>
       <subsection>
-		<a name="which_jars" />
+        <a name="missing_core" />
+        <h4>I'm seeing this error "Unable to locate a logging implementation, using SimpleLogger".
+          What is wrong?</h4>
+        <p>You have the log4j-api-2.x jar file in your classpath but you still need to add the log4j-core-2.x jar to the
+          classpath. (Also, it looks like you are using an old version of Log4j 2. You may want to upgrade.)</p>
+
+        <a name="which_jars" />
         <h4>Which JAR files do I need?</h4>
         <p>You need at least the log4j-api-2.x and the log4j-core-2.x jar files.</p>
         <p>The other jars are necessary if your application calls the API
@@ -59,6 +67,9 @@
         </p><p>
         You can also specify the full path of the configuration file with this system property:<br />
         <code>-Dlog4j.configurationFile=path/to/log4j2.xml</code></p>
+        <p>Web applications can specify the Log4j configuration file location with a servlet context parameter.
+          See <a href="http://logging.apache.org/log4j/2.x/manual/webapp.html#ContextParams">this section</a>
+          of the Using Log4j 2 in Web Applications manual page.</p>
 
 		<a name="config_from_code" />
         <h4>How do I configure log4j2 in code without a configuration file?</h4>