mirror of https://github.com/apache/openjpa.git
OPENJPA-1510: Remove JDK 1.4 references from Apache Commons Logging section.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@924026 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d386fa8067
commit
3b15fe9e2d
|
@ -390,13 +390,12 @@ log4j.appender.console=org.apache.log4j.ConsoleAppender
|
||||||
Set the <literal>openjpa.Log</literal> property to <literal>commons</literal> to
|
Set the <literal>openjpa.Log</literal> property to <literal>commons</literal> to
|
||||||
use the <ulink url="http://commons.apache.org/logging/"> Apache
|
use the <ulink url="http://commons.apache.org/logging/"> Apache
|
||||||
Commons Logging</ulink> thin library for issuing log messages. The
|
Commons Logging</ulink> thin library for issuing log messages. The
|
||||||
Commons Logging libraries act as a wrapper around a number of popular logging
|
Commons Logging library act as a wrapper around a number of popular logging
|
||||||
APIs, including the
|
APIs, including the
|
||||||
<ulink url="http://logging.apache.org/log4j/1.2/index.html"> Jakarta Log4J
|
<ulink url="http://logging.apache.org/log4j/1.2/index.html"> Jakarta Log4J
|
||||||
</ulink> project, and the native
|
</ulink> project, and the native
|
||||||
<ulink url="http://java.sun.com/j2se/1.4/docs/api/java/util/logging/package-summary.html">
|
<ulink url="http://java.sun.com/javase/6/docs/api/java/util/logging/package-summary.html">
|
||||||
java.util.logging</ulink> package in JDK 1.4. If neither of these libraries are
|
java.util.logging</ulink> package in JDK.
|
||||||
available, then logging will fall back to using simple console logging.
|
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
When using the Commons Logging framework in conjunction with Log4J,
|
When using the Commons Logging framework in conjunction with Log4J,
|
||||||
|
@ -404,29 +403,29 @@ configuration will be the same as was discussed in the Log4J section above.
|
||||||
</para>
|
</para>
|
||||||
<section id="ref_guide_logging_jdk14">
|
<section id="ref_guide_logging_jdk14">
|
||||||
<title>
|
<title>
|
||||||
JDK 1.4 java.util.logging
|
JDK java.util.logging
|
||||||
</title>
|
</title>
|
||||||
<indexterm zone="ref_guide_logging_jdk14">
|
<indexterm zone="ref_guide_logging_jdk14">
|
||||||
<primary>
|
<primary>
|
||||||
logging
|
logging
|
||||||
</primary>
|
</primary>
|
||||||
<secondary>
|
<secondary>
|
||||||
JDK 1.4
|
JDK
|
||||||
</secondary>
|
</secondary>
|
||||||
</indexterm>
|
</indexterm>
|
||||||
<para>
|
<para>
|
||||||
When using JDK 1.4 or higher in conjunction with OpenJPA's Commons Logging
|
When using JDK logging in conjunction with OpenJPA's Commons Logging
|
||||||
support, logging will proceed through Java's built-in logging provided by the
|
support, logging will proceed through Java's built-in logging provided by the
|
||||||
<ulink url="http://java.sun.com/j2se/1.4/docs/api/java/util/logging/package-summary.html">
|
<ulink url="http://java.sun.com/javase/6/docs/api/java/util/logging/package-summary.html">
|
||||||
java.util.logging</ulink> package. For details on configuring the built-in
|
java.util.logging</ulink> package. For details on configuring the built-in
|
||||||
logging system, please see the
|
logging system, please see the
|
||||||
<ulink url="http://java.sun.com/j2se/1.4/docs/guide/util/logging/overview.html">
|
<ulink url="http://java.sun.com/javase/6/docs/technotes/guides/logging/overview.html">
|
||||||
Java Logging Overview</ulink>.
|
Java Logging Overview</ulink>.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
By default, JDK 1.4's logging package looks in the <filename>
|
By default, JDK's logging package looks in the <filename>
|
||||||
JAVA_HOME/lib/logging.properties</filename> file for logging configuration. This
|
JAVA_HOME/lib/logging.properties</filename> file for logging configuration. This
|
||||||
can be overridden with the <literal> java.util.logging.config.file</literal>
|
can be overridden with the <literal>java.util.logging.config.file</literal>
|
||||||
system property. For example:
|
system property. For example:
|
||||||
</para>
|
</para>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
@ -434,7 +433,7 @@ java -Djava.util.logging.config.file=mylogging.properties com.company.MyClass
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<example id="ref_guide_logging_jdk14_propfile">
|
<example id="ref_guide_logging_jdk14_propfile">
|
||||||
<title>
|
<title>
|
||||||
JDK 1.4 Log Properties
|
JDK Log Properties
|
||||||
</title>
|
</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
# specify the handlers to create in the root logger
|
# specify the handlers to create in the root logger
|
||||||
|
|
Loading…
Reference in New Issue