cvs commit: jakarta-log4j/src/java/org/apache/log4j PropertyConfigurator.java
[email protected] 19 Mar 2002 21:18:36 -0000
| Newsgroups | gmane.comp.jakarta.log4j.cvs |
|---|---|
| Message-ID | <[email protected]> |
ceki 02/03/19 13:18:36
Modified: src/java/org/apache/log4j PropertyConfigurator.java
Log:
Changes to documentation
Revision Changes Path
1.49 +12 -13 jakarta-log4j/src/java/org/apache/log4j/PropertyConfigurator.java
Index: PropertyConfigurator.java
===================================================================
RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/PropertyConfigurator.java,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- PropertyConfigurator.java 19 Mar 2002 21:11:41 -0000 1.48
+++ PropertyConfigurator.java 19 Mar 2002 21:18:36 -0000 1.49
@@ -59,21 +59,20 @@
appenders such as the {@link org.apache.log4j.AsyncAppender
AsyncAppender}, etc.
- <p><em>All option values admit variable substitution.</em> For
- example, if <code>java.home</code> system property is set to
- <code>/home/xyz</code> and the File option is set to the string
- <code>${java.home}/test.log</code>, then File option will be
- interpreted as the string <code>/home/xyz/test.log</code>.
-
- <p>The value of the substituted variable can be defined as a system
- property or in the configuration file file itself.
-
- <p>The syntax of variable substitution is similar to that of UNIX
+ <p>All option <em>values</em> admit variable substitution. The
+ syntax of variable substitution is similar to that of Unix
shells. The string between an opening <b>"${"</b> and
- closing <b>"}"</b> is interpreted as a key. Its value is
+ closing <b>"}"</b> is interpreted as a key. The value of
+ the substituted variable can be defined as a system property or in
+ the configuration file itself. The value of the key is first
searched in the system properties, and if not found there, it is
- searched in the configuration file being parsed. The corresponding
- value replaces the ${variableName} sequence.
+ then searched in the configuration file being parsed. The
+ corresponding value replaces the ${variableName} sequence. For
+ example, if <code>java.home</code> system property is set to
+ <code>/home/xyz</code>, then every occurance of the sequence
+ <code>${java.home}</code> will be interpreted as
+ <code>/home/xyz</code>.
+
@author Ceki Gülcü
@author Anders Kristensen
--
To unsubscribe, e-mail: <mailto:[email protected]>
For additional commands, e-mail: <mailto:[email protected]>