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/fba337ad Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/fba337ad Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/fba337ad Branch: refs/heads/master Commit: fba337ad0df0e03bff0e5de69200b828d435d79d Parents: 0aeb9c5 Author: rpopma <[email protected]> Authored: Wed Nov 11 13:43:58 2015 +0900 Committer: Ralph Goers <[email protected]> Committed: Fri Nov 20 17:39:21 2015 -0700 ---------------------------------------------------------------------- src/site/xdoc/faq.xml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/fba337ad/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>
