Craig R. McClanahan
91d58c6367
Add a new factory base class (LogFactory) and corresponding implementation
...
(LogFactoryImpl) that is based on the principles of the JAXP API's approach
to discovering SAXParserFactory and DocumentBuilderFactory instances. It
addresses the technical concerns that Costin brought up in response to the
original Commons Logging 1.0 vote.
The primary new features:
* Applications can select their own LogFactory implementations, not
just their own Log implementations. The default LogFactoryImpl
uses the same algorithm currently included in LogSource.
* The LogFactory implementation class can be specified by either a
system property (org.apache.commons.logging.LogFactory), or by a
corresponding property in a "commons-logging.properties" file found
somewhere in the class path.
* LogFactory implementations possess optional configuration attributes,
which are preloaded from the "commons-logging.properties" file if it
is found. These can be used by the factory to customize its own
behavior as needed.
* LogFactory and Log implementation classes are loaded from the
thread context class loader (if it is set) in a JDK 1.2 or later
environment. Hwoever, the entire API and default implementation should
still work on a JDK 1.1 system.
* A specialized exception (LogConfigurationException) is thrown for things
like missing LogFactory or Log implementation clases. This class
extends RuntimeException, so you normally don't have to put everything
in try/catch blocks unless you care about dealing with this in a
special way.
For applications currently using the pre-release version of the API, this
will typically mean replacing calls like this:
Log log = LogSource.getInstance("foo");
with calls like this:
Log log = LogFactory.newFactory().getInstance("foo");
unless you want to take advantage of the new capabilities.
If this factory approach is accepted, I propose that we take the actions:
* Deprecate LogSource (but leave it there for now, to assist existing
applications in their transition)
* Consider adding a setLogFactory() method to the Log interface -- and
the existing implementation classes -- to give them easy access to the
configuration attributes associated with the factory.
* Add unit tests for the new code (it's not really been tested yet).
* Propose the revised APIs as Commons-Logging 1.0 so that apps waiting
for a final release can know what API to depend on.
Follow-up technical discussions on this proposal should take place on
COMMONS-DEV. (If you want to argue about who can vote for what, please
start your own thread someplace else so we can get some work done :-).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138856 13f79535-47bb-0310-9956-ffa450edef68
2002-02-13 02:18:11 +00:00
Scott Sanders
6b20d69b8e
Update to reflect the move of the JDK14Logger class
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138855 13f79535-47bb-0310-9956-ffa450edef68
2002-02-03 01:44:03 +00:00
Scott Sanders
14c7f711e3
Removed impl classes as they have moved to impl now
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138854 13f79535-47bb-0310-9956-ffa450edef68
2002-02-03 01:33:27 +00:00
Scott Sanders
644168defb
New import because of move
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138853 13f79535-47bb-0310-9956-ffa450edef68
2002-02-03 01:31:54 +00:00
Scott Sanders
9a529044cb
Moved implementation classes to impl package, as per
...
Costin M.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138852 13f79535-47bb-0310-9956-ffa450edef68
2002-02-03 01:31:29 +00:00
Scott Sanders
c0cc00947a
Use Hashtable instead of HashMap, for JDK 1.1
...
compatibility, and to solve sync issues
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138851 13f79535-47bb-0310-9956-ffa450edef68
2002-02-03 01:28:00 +00:00
Scott Sanders
84958f29b7
Update to add a trace() level to the Log interface.
...
Currently uses debug() in Log4J and LogKit
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138850 13f79535-47bb-0310-9956-ffa450edef68
2002-01-31 00:14:31 +00:00
Peter Donald
8d3cf2e4ac
*** empty log message ***
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138849 13f79535-47bb-0310-9956-ffa450edef68
2002-01-30 07:51:03 +00:00
Craig R. McClanahan
ed81b5ffec
Correct the author attributions on the JDK 1.4 logging package wrapper.
...
The code that this was based on was posted by Paulo Gaspar with a Java
package name of "krankikom.log.*" -- not exactly rousing evidence of
the fact that it came from Avalon.
Finally found the old mail message, and it did have Berin and Peter
as authors. Sure wish Paulo wouldn't arbitrarily change package names ...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138848 13f79535-47bb-0310-9956-ffa450edef68
2002-01-30 03:56:26 +00:00
Scott Sanders
50aeb810bf
Updated JDK14Logger to use the FINE level instead of the FINEST level
...
for debug. This way if commons-logging needs to define a lower level,
it will be able to do so. I am thinking about this because JBoss has
a TRACE level below debug.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138847 13f79535-47bb-0310-9956-ffa450edef68
2002-01-29 20:48:10 +00:00
Scott Sanders
e4a89ea02f
Release Notes for the release
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138846 13f79535-47bb-0310-9956-ffa450edef68
2002-01-29 20:31:04 +00:00
Scott Sanders
fddc5b95e0
Updated the STATUS file to add myself as a comitter and
...
to attribute Avalon and Log4J for the influence that they
had on the interface impls.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138845 13f79535-47bb-0310-9956-ffa450edef68
2002-01-29 20:30:34 +00:00
Scott Sanders
35be4f47a4
Update to remove unused try catch
...
PR:
Obtained from:
Submitted by: Daniel Rall [dlr@finemaltcoding.com ]
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138844 13f79535-47bb-0310-9956-ffa450edef68
2002-01-25 18:41:48 +00:00
Robert Burrell Donkin
7d2bb88e6c
Improved java doc comments
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138843 13f79535-47bb-0310-9956-ffa450edef68
2002-01-24 19:02:35 +00:00
Robert Burrell Donkin
fec6a9f72b
Improved java doc comments
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138842 13f79535-47bb-0310-9956-ffa450edef68
2002-01-24 18:29:36 +00:00
Robert Burrell Donkin
731ec59f35
Updated documentation to reflect new Log interface
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138841 13f79535-47bb-0310-9956-ffa450edef68
2002-01-23 20:14:30 +00:00
Robert Burrell Donkin
6aa9386d49
Updated package documentation to reflect latest Log interface
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138840 13f79535-47bb-0310-9956-ffa450edef68
2002-01-22 22:10:45 +00:00
Craig R. McClanahan
97142db2c2
Add logkit.jar to "test.classpath" as well as "compile.classpath".
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138839 13f79535-47bb-0310-9956-ffa450edef68
2002-01-22 01:33:45 +00:00
Craig R. McClanahan
dabce5cf42
Add convenience "all" and "off" levels to SimpleLog.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138838 13f79535-47bb-0310-9956-ffa450edef68
2002-01-21 21:19:38 +00:00
Craig R. McClanahan
fef8c7dd0a
Update hyperlinks in these two files.
...
Submitted by: Eric Dobbs <eric@dobbse.net >
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138837 13f79535-47bb-0310-9956-ffa450edef68
2002-01-20 04:48:27 +00:00
Robert Burrell Donkin
7d84a88865
Removed AbstractLog and associated test case, removed log level constants from Log interface, added renamed level constants to SimpleLog and fixed SimpleLog configuration bug
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138836 13f79535-47bb-0310-9956-ffa450edef68
2002-01-17 22:55:43 +00:00
Craig R. McClanahan
b39b2191aa
Implement the agreed-upon API changes for the commons-logging package.
...
If the changes are too radical, I tagged things with "before_clean_up" to make
it easy to go back.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138835 13f79535-47bb-0310-9956-ffa450edef68
2002-01-17 01:47:49 +00:00
Craig R. McClanahan
36652638b4
Make LogSource more applet-friendly by swallowing any security exception
...
thrown when System.getProperty() is called.
Submitted by: Anthony Martin <Anthony@TRAMS.com >
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138833 13f79535-47bb-0310-9956-ffa450edef68
2002-01-16 00:54:51 +00:00
Craig R. McClanahan
7ed3bbc6ee
A few more tweaks to the STATUS file, add the MANIFEST.MF file for the
...
META-INF directory of the JAR file.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138832 13f79535-47bb-0310-9956-ffa450edef68
2002-01-08 22:55:39 +00:00
Robert Burrell Donkin
ea082c4cdc
Added LogKitLogger documentation
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138831 13f79535-47bb-0310-9956-ffa450edef68
2002-01-08 21:35:10 +00:00
Robert Burrell Donkin
bac9c212f3
LogKit wrapper initial commit
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138830 13f79535-47bb-0310-9956-ffa450edef68
2002-01-07 23:06:10 +00:00
Craig R. McClanahan
af62db1c56
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
2002-01-05 22:40:40 +00:00
Robert Burrell Donkin
09277f80cb
Added link to java doc comments (so that it's easier to find the method description)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138828 13f79535-47bb-0310-9956-ffa450edef68
2002-01-05 15:55:00 +00:00
Craig R. McClanahan
377da14ae0
Add "META-INF/LICENSE.txt" for digester and logging also.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138827 13f79535-47bb-0310-9956-ffa450edef68
2002-01-05 00:34:46 +00:00
Scott Sanders
8eca63c9d2
Added my project to ignore list
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138826 13f79535-47bb-0310-9956-ffa450edef68
2002-01-04 21:23:56 +00:00
Robert Burrell Donkin
fc43c73d7d
This class now inherits from AbstractLog and log level checking is enforced
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138825 13f79535-47bb-0310-9956-ffa450edef68
2002-01-03 19:00:19 +00:00
Robert Burrell Donkin
18ee959b10
Same implementation but added long license and java doc comments
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138824 13f79535-47bb-0310-9956-ffa450edef68
2002-01-03 18:58:00 +00:00
Robert Burrell Donkin
6faf1a6587
Same interface but added long license and java doc comments
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138823 13f79535-47bb-0310-9956-ffa450edef68
2002-01-03 18:54:29 +00:00
Robert Burrell Donkin
dea4a74d36
Added note about junit property (for running test cases)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138822 13f79535-47bb-0310-9956-ffa450edef68
2002-01-03 18:53:21 +00:00
Robert Burrell Donkin
5b72a5551e
Abstract log implementation initial commit
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138821 13f79535-47bb-0310-9956-ffa450edef68
2002-01-03 18:52:25 +00:00
Robert Burrell Donkin
5be574e6f0
Log levels test case initial commit
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138820 13f79535-47bb-0310-9956-ffa450edef68
2002-01-03 18:49:27 +00:00
Robert Burrell Donkin
dd4e6015c3
Initial commit of log implementation used for testing
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138819 13f79535-47bb-0310-9956-ffa450edef68
2002-01-03 18:48:41 +00:00
Robert Burrell Donkin
80e21a7d1d
Logging test suite initial commit
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138818 13f79535-47bb-0310-9956-ffa450edef68
2002-01-03 18:47:09 +00:00
Robert Burrell Donkin
13148bb70f
Logging status file initial commit
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138817 13f79535-47bb-0310-9956-ffa450edef68
2002-01-03 18:45:27 +00:00
Craig R. McClanahan
35ad9f42bd
Forgot to clean up a Javadoc warning along the way.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138815 13f79535-47bb-0310-9956-ffa450edef68
2001-12-04 04:41:00 +00:00
Craig R. McClanahan
ad40b8fdb4
Migrate the "logging" package from jakarta-commons-sandbox.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138814 13f79535-47bb-0310-9956-ffa450edef68
2001-12-04 04:28:03 +00:00
Morgan James Delagrange
85cb60fc43
no message
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138813 13f79535-47bb-0310-9956-ffa450edef68
2001-08-09 14:54:42 +00:00
Morgan James Delagrange
accc30a955
fixing typos
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138812 13f79535-47bb-0310-9956-ffa450edef68
2001-08-08 20:54:15 +00:00
Morgan James Delagrange
3fdbfd2e86
proposal for stand-alone logging component
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138811 13f79535-47bb-0310-9956-ffa450edef68
2001-08-08 20:35:22 +00:00
Morgan James Delagrange
c8c5b8a7ad
proposal for stand-alone logging component
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138810 13f79535-47bb-0310-9956-ffa450edef68
2001-08-08 20:05:27 +00:00
Rodney Waldhoff
0e1807129a
removing assert(), since that's a reserved keyword in JDK 1.4
...
we can add it back later once log4j settles on a new method name
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138809 13f79535-47bb-0310-9956-ffa450edef68
2001-08-07 17:37:22 +00:00
Rodney Waldhoff
2f77a01e23
adding isDebugEnabled and isInfoEnabled per Ceki's suggestion
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138808 13f79535-47bb-0310-9956-ffa450edef68
2001-08-02 22:14:41 +00:00
Rodney Waldhoff
db6faedfe4
refactored logging so that log4j is no longer a runtime depedency
...
updates to documentation to come
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138807 13f79535-47bb-0310-9956-ffa450edef68
2001-08-02 16:27:06 +00:00
No Author
aee9225a28
New repository initialized by cvs2svn.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138806 13f79535-47bb-0310-9956-ffa450edef68
2001-08-02 16:27:06 +00:00