1
0

Add a new Log implementation for JDK 1.4 (or later) logging.

Default behavior of LogSource.getInstance() is now:
* If Log4J is available, return an instance of Log4JCategoryLog
* If JDK 1.4 is available, return an instance of Jdk14Logger
* Otherwise, return an instance of NoOpLogger

As before, this default behavior can be overridden with a system
property, or by calling LogSource.setLogImplementation(), as described
in the package Javadocs.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138829 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Craig R. McClanahan
2002-01-05 22:40:40 +00:00
parent 09277f80cb
commit af62db1c56
4 changed files with 412 additions and 60 deletions

View File

@@ -3,7 +3,7 @@
<!--
"Logging" component of the Jakarta Commons Subproject
$Id: build.xml,v 1.4 2002/01/05 00:34:46 craigmcc Exp $
$Id: build.xml,v 1.5 2002/01/05 22:40:40 craigmcc Exp $
-->
@@ -129,12 +129,17 @@
<target name="compile" depends="static"
description="Compile shareable components">
<available property="jdk.1.4.present"
classname="java.util.logging.Logger"/>
<echo message="jdk.1.4.present=${jdk.1.4.present}"/>
<javac srcdir="${source.home}"
destdir="${build.home}/classes"
debug="${compile.debug}"
deprecation="${compile.deprecation}"
optimize="${compile.optimize}">
<classpath refid="compile.classpath"/>
<exclude name="org/apache/commons/logging/Jdk14Logger.java"
unless="jdk.1.4.present"/>
</javac>
<copy todir="${build.home}/classes" filtering="on">
<fileset dir="${source.home}" excludes="**/*.java"/>