cvs commit: jakarta-log4j/docs manual.html
[email protected] 17 Apr 2002 21:38:52 -0000
| Newsgroups | gmane.comp.jakarta.log4j.cvs |
|---|---|
| Message-ID | <[email protected]> |
ceki 02/04/17 14:38:51
Modified: docs manual.html
Log:
Several corrections and updates.
Revision Changes Path
1.31 +8 -11 jakarta-log4j/docs/manual.html
Index: manual.html
===================================================================
RCS file: /home/cvs/jakarta-log4j/docs/manual.html,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- manual.html 12 Apr 2002 08:29:28 -0000 1.30
+++ manual.html 17 Apr 2002 21:38:51 -0000 1.31
@@ -342,7 +342,7 @@
// Now set its level. Normally you do not need to set the
// level of a logger progamitcally. This is usually done
// in configuration files.
- <strong>cat</strong>.setLevel(<font
+ <strong>logger</strong>.setLevel(<font
color="0000AA"><strong>Level.INFO</strong></font>);
Logger barlogger = Logger.getLogger(<strong>"com.foo.Bar"</strong>);
@@ -372,8 +372,8 @@
<table bgcolor="CCCCCC">
<tr><td>
<pre>
- Categoty x = Logger.getLogger("wombat");
- Categoty y = Logger.getLogger("wombat");</pre>
+ Logger x = Logger.getLogger("wombat");
+ Logger y = Logger.getLogger("wombat");</pre>
</td>
</table>
<code>x</code> and <code>y</code> refer to <em>exactly</em> the same
@@ -911,19 +911,16 @@
<p>The Windows shell command
<pre>
- set TOMCAT_OPTS=-Dlog4j.configuration=foobar.lcf#com.foo.BarConfigurator
+ set TOMCAT_OPTS=-Dlog4j.configuration=foobar.lcf -Dlog4j.configuratorClass=com.foo.BarConfigurator
</pre>
tells log4j to use the file <code>foobar.lcf</code> as the default
configuration file. This file should be place under the
<code>WEB-INF/classes</code> directory of your web-application. Due to
-the extra reference part, the file will be read using the
+the second system property, the file will be read using the
<code>com.foo.BarConfigurator</code> custom configurator. Each
web-application will use a different default configuration file
-because each file is relative to a web-application. <b>Support for
-custom configurators in the reference part will be dropped in future
-log4j versions. You should not rely on this feature.</b>
-
+because each file is relative to a web-application.
<p><b>Example 4</b>
@@ -931,7 +928,7 @@
<pre>
set TOMCAT_OPTS=-Dlog4j.configuration=file:/c:/foobar.lcf</pre>
-tells log4j to use the file <code>c:\foobar.xml</code> as the default
+tells log4j to use the file <code>c:\foobar.lcf</code> as the default
configuration file. The configuration file is fully specified by the
URL <code>file:/c:/foobar.lcf</code>. Thus, the same configuration
file will be used for all web-applications.
@@ -1169,7 +1166,7 @@
<p>The typical cost of walking the hierarchy is typically 3
times slower than when logging is turned off entirely.
- <p><b><li>Actual logging.</b>
+ <p><b><li>Actually outputting log messages</b>
<p>This is the cost of formatting the log output and sending it to
its target destination. Here again, a serious effort was made to