Author: hoju
Date: Fri Nov 19 13:03:29 2010
New Revision: 1036829

URL: http://svn.apache.org/viewvc?rev=1036829&view=rev
Log:
Fix typo in Logger javadoc (reported by "Nico R." on log4j-dev list) and fix 
broken links (and anchors) in manual 
(https://issues.apache.org/bugzilla/show_bug.cgi?id=50287).  Still one broken 
link left pointing to "apidocs/org/apache/log4j/performance/Logging.html", but 
I don't think that resource exists anymore.  Leaving for posterity.

Modified:
    logging/log4j/trunk/src/main/java/org/apache/log4j/Logger.java
    logging/log4j/trunk/src/site/xdoc/manual.xml

Modified: logging/log4j/trunk/src/main/java/org/apache/log4j/Logger.java
URL: 
http://svn.apache.org/viewvc/logging/log4j/trunk/src/main/java/org/apache/log4j/Logger.java?rev=1036829&r1=1036828&r2=1036829&view=diff
==============================================================================
--- logging/log4j/trunk/src/main/java/org/apache/log4j/Logger.java (original)
+++ logging/log4j/trunk/src/main/java/org/apache/log4j/Logger.java Fri Nov 19 
13:03:29 2010
@@ -122,7 +122,7 @@ public class Logger extends Category {
    * Return the root logger for the current logger repository.
    * <p>
    * The {...@link #getName Logger.getName()} method for the root logger 
always returns
-   * stirng value: "root". However, calling
+   * string value: "root". However, calling
    * <code>Logger.getLogger("root")</code> does not retrieve the root
    * logger but a logger just under root named "root".
    * <p>

Modified: logging/log4j/trunk/src/site/xdoc/manual.xml
URL: 
http://svn.apache.org/viewvc/logging/log4j/trunk/src/site/xdoc/manual.xml?rev=1036829&r1=1036828&r2=1036829&view=diff
==============================================================================
--- logging/log4j/trunk/src/site/xdoc/manual.xml (original)
+++ logging/log4j/trunk/src/site/xdoc/manual.xml Fri Nov 19 13:03:29 2010
@@ -56,7 +56,7 @@ href="http://www.semper.org";>SEMPER</a> 
 own tracing API. This was in early 1996. After countless enhancements,
 several incarnations and much work that API has evolved to become
 log4j, a popular logging package for Java. The package is distributed
-under the <a href="../LICENSE">Apache Software License</a>, a
+under the <a href="license.html">Apache Software License</a>, a
 fully-fledged open source license certified by the <a
 href="http://www.opensource.org";>open source</a> initiative. The
 latest log4j version, including full-source code, class files and
@@ -161,7 +161,7 @@ is exceptional in two ways:
 
href="apidocs/org/apache/log4j/Logger.html#getRootLogger()">Logger.getRootLogger</a>
 method retrieves it. All other loggers are instantiated and
 retrieved with the class static <a
-href="apidocs/org/apache/log4j/Logger.html#getLogger()">Logger.getLogger</a>
+href="apidocs/org/apache/log4j/Logger.html#getLogger(java.lang.String)">Logger.getLogger</a>
 method. This method takes the name of the desired logger as a
 parameter. Some of the basic methods in the Logger class are listed
 below.</p>
@@ -307,14 +307,14 @@ having an assigned level..</p>
 of a logger instance. These printing methods are
 
 <code>
-<a 
href="apidocs/org/apache/log4j/Logger.html#debug(java.lang.Object)">debug</a>,
+<a 
href="apidocs/org/apache/log4j/Category.html#debug(java.lang.Object)">debug</a>,
 
-<a href="apidocs/org/apache/log4j/Logger.html#info(java.lang.Object)">info</a>,
+<a 
href="apidocs/org/apache/log4j/Category.html#info(java.lang.Object)">info</a>,
 
-<a href="apidocs/org/apache/log4j/Logger.html#warn(java.lang.Object)">warn</a>,
-<a 
href="apidocs/org/apache/log4j//Logger.html#error(java.lang.Object)">error</a>,
-<a 
href="apidocs/org/apache/log4j/Logger.html#fatal(java.lang.Object)">fatal</a>
- and <a href="apidocs/org/apache/log4j/Logger.html#log(org.apache.log4j.Level, 
java.lang.Object)">log</a></code>.</p>
+<a 
href="apidocs/org/apache/log4j/Category.html#warn(java.lang.Object)">warn</a>,
+<a 
href="apidocs/org/apache/log4j//Category.html#error(java.lang.Object)">error</a>,
+<a 
href="apidocs/org/apache/log4j/Category.html#fatal(java.lang.Object)">fatal</a>
+ and <a 
href="apidocs/org/apache/log4j/Category.html#log(org.apache.log4j.Priority, 
java.lang.Object)">log</a></code>.</p>
 
 
 <p>By definition, the printing method determines the level of a
@@ -443,7 +443,7 @@ daemons. It is also possible to log <a h
 <p>More than one appender can be attached to a logger.</p>
 
 <p>The <a
-href="apidocs/org/apache/log4j/Logger.html#addAppender(org.apache.log4j.Appender)">addAppender</a>
+href="apidocs/org/apache/log4j/Category.html#addAppender(org.apache.log4j.Appender)">addAppender</a>
 method adds an appender to a given logger.
 
 <b>Each enabled logging
@@ -457,7 +457,7 @@ console. If in addition a file appender 
 <em>C</em>'s children will print on a file <em>and</em> on the
 console. It is possible to override this default behavior so that
 appender accumulation is no longer additive by <a
-href="apidocs/org/apache/log4j/Logger.html#setAdditivity(boolean)">setting
+href="apidocs/org/apache/log4j/Category.html#setAdditivity(boolean)">setting
 the additivity flag</a> to <code>false</code>.</p>
 
 <p>The rules governing appender additivity are summarized below.</p>
@@ -906,7 +906,7 @@ tells log4j to use the file <code>foobar
 configuration file. This file should be place under the
 <code>WEB-INF/classes</code> directory of your web-application. The
 file will be read using the <a
-href="apidocs/org/apache/log4j/xml/PropertyConfigurator.html">PropertyConfigurator</a>.
 Each
+href="apidocs/org/apache/log4j/PropertyConfigurator.html">PropertyConfigurator</a>.
 Each
 web-application will use a different default configuration file because
 each file is relative to a web-application.</p>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to