1
0
Commit Graph

399 Commits

Author SHA1 Message Date
Simon Kitching
c563002215 Create commons-logging-adapters.jar file in dist target.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@190887 13f79535-47bb-0310-9956-ffa450edef68
2005-06-16 08:06:43 +00:00
Simon Kitching
a843d5dbc0 Build commons-logging-adapters.jar from maven build.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@190866 13f79535-47bb-0310-9956-ffa450edef68
2005-06-16 04:10:24 +00:00
Simon Kitching
9ecd27bf48 Fixed copy-and-paste error in getConfigurationValue when getting from system property.
Thanks to Brian Stansberry for spotting this.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@190581 13f79535-47bb-0310-9956-ffa450edef68
2005-06-14 11:09:44 +00:00
Simon Kitching
b35e8d3b53 Avoid wrapping exception - patch by Brian Stansberry
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@190569 13f79535-47bb-0310-9956-ffa450edef68
2005-06-14 10:23:08 +00:00
Simon Kitching
a3f8e5302a Merge in the allow-flawed branch, as there were no objections.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@190565 13f79535-47bb-0310-9956-ffa450edef68
2005-06-14 10:03:48 +00:00
Simon Kitching
ca0188c41e Fix bug introduced by recent changes. Thanks to Brian Stansberry for the patch.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@180287 13f79535-47bb-0310-9956-ffa450edef68
2005-06-06 10:33:37 +00:00
Simon Kitching
d7f774a5bb Syntactic cleanups only:
* javadoc layout cleanup
 * variable & param renames


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@179572 13f79535-47bb-0310-9956-ffa450edef68
2005-06-02 10:41:12 +00:00
Simon Kitching
17c6d98369 Remove ugly LOG_INTERFACE string and weird log-class-lookup code
from within the reportInvalidLogAdapter method.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@179571 13f79535-47bb-0310-9956-ffa450edef68
2005-06-02 10:28:35 +00:00
Simon Kitching
eb93a324e4 Clean up LoadTest testcase and include in standard test suite.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@179566 13f79535-47bb-0310-9956-ffa450edef68
2005-06-02 09:12:24 +00:00
Simon Kitching
d71598bd0f Exclude package.html files from the jar files.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@179559 13f79535-47bb-0310-9956-ffa450edef68
2005-06-02 08:35:54 +00:00
Simon Kitching
ac7a0f8505 Changed createLogFromClass method to return null on recoverable failure,
and only throw an exception on unrecoverable failure. This simplifies
the code a fair bit.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@179546 13f79535-47bb-0310-9956-ffa450edef68
2005-06-02 07:39:39 +00:00
Simon Kitching
5c06195efb Ensure an ExceptionInInitializerError occurs when trying to create an instance
of these classes in pre-1.4 JVMs. Without this, an InvocationTargetException
could be thrown when calling the constructor but that could also be caused
by a number of other reasons which we don't want to ignore.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@179529 13f79535-47bb-0310-9956-ffa450edef68
2005-06-02 06:31:52 +00:00
Simon Kitching
df0d0ed341 Ensure class files generated are compatible with 1.1 JVMs
(although we only support 1.2+ at the moment).


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@179511 13f79535-47bb-0310-9956-ffa450edef68
2005-06-02 05:05:18 +00:00
Simon Kitching
15956fee82 Change to discovery process: testing whether various logging
libraries are available is now done by trying to actually
create an instance.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@179500 13f79535-47bb-0310-9956-ffa450edef68
2005-06-02 04:09:16 +00:00
Simon Kitching
195ac37a76 Add better reporting when jdk14 handler setup isn't right.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@177867 13f79535-47bb-0310-9956-ffa450edef68
2005-05-23 01:41:23 +00:00
Simon Kitching
75c8135c03 Fix javadoc and fix java1.5 compile warnings.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@177071 13f79535-47bb-0310-9956-ffa450edef68
2005-05-23 01:04:54 +00:00
Simon Kitching
a408e51f46 Ensure class file format is compatible with JVM 1.1
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@176581 13f79535-47bb-0310-9956-ffa450edef68
2005-05-23 01:02:02 +00:00
Simon Kitching
a04edd5ec6 Updated obsolete goal java:jar to jar:jar
Removed obsolete exclude of CVS subdirs


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@176497 13f79535-47bb-0310-9956-ffa450edef68
2005-05-23 01:01:36 +00:00
Simon Kitching
110f2a234b Added internal diagnostics
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@171301 13f79535-47bb-0310-9956-ffa450edef68
2005-05-22 10:43:52 +00:00
Simon Kitching
c485c20b1e Added internal diagnostics
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@171300 13f79535-47bb-0310-9956-ffa450edef68
2005-05-22 10:43:06 +00:00
Robert Burrell Donkin
cbfc01a0ab Fixed bug in demonstration. Spotted by Simon Kitching.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@170992 13f79535-47bb-0310-9956-ffa450edef68
2005-05-19 20:42:12 +00:00
Robert Burrell Donkin
cb2ddfd9cc Improved demonstration build by automatically cleaning. Contributed by Ceki Gülcü.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@170829 13f79535-47bb-0310-9956-ffa450edef68
2005-05-18 21:15:14 +00:00
Simon Kitching
c1f16b5d2a Just moved some code out of method getLogConstructor into its own
method reportInvalidLogAdapter to make code easier to read (esp.
as I'm going to add more code to this method later).


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@170512 13f79535-47bb-0310-9956-ffa450edef68
2005-05-17 04:27:57 +00:00
Simon Kitching
e985f2a051 Minor AccessController-related tidyups:
* Use static initialiser block to initialise factories rather than variable initialiser.
* Add static member thisClassLoader to cache classloader for the LogFactory class;
  change all calls to LogFactory.class.getClassLoader() to just use thisClassLoader.
* Change getContextClassLoader to always use AccessController (actually, rename
  getContextClassLoader to directGetContextClassLoader, and make getContextClassLoader
  a wrapper around that).
* define a method getClassLoader(clazz) that just does clazz.getClassLoader for now;
  change all calls to clazz.getClassLoader into getClassLoader(clazz)


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@170501 13f79535-47bb-0310-9956-ffa450edef68
2005-05-17 01:43:32 +00:00
Simon Kitching
0a54560d5c oops .. should have added myself to the developers list before doing any commits.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@170367 13f79535-47bb-0310-9956-ffa450edef68
2005-05-16 11:41:35 +00:00
Simon Kitching
851f7c5f33 Simple rearrangement of code only; no functionality change (though the diffs don't show that clearly).
Turned a complicated anonymous class declaration into a simple anonymous class that calls a method
on LogFactory containing all the code previously within the anonymous class declaration.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@170355 13f79535-47bb-0310-9956-ffa450edef68
2005-05-16 10:41:44 +00:00
Simon Kitching
3200e8aa2e Add test case for situation where context classloader is null.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@169388 13f79535-47bb-0310-9956-ffa450edef68
2005-05-10 00:47:03 +00:00
Simon Kitching
7839295a8e Fix for case where classloader key to "factories" member is null.
This can happen in JDK1.1 and in embedded systems work. Without this
fix, a new LogFactoryImpl is created each time LogFactory.getLog(..)
is called! See bugzilla#10825, comment#22. Thanks to Erik Erskine for
bug report and fix.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@169387 13f79535-47bb-0310-9956-ffa450edef68
2005-05-10 00:45:18 +00:00
Robert Burrell Donkin
b6b750fc9c Added note about new, improved terminology coined by Mike Colbert.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@168173 13f79535-47bb-0310-9956-ffa450edef68
2005-05-04 19:29:01 +00:00
Robert Burrell Donkin
9ad236575b Corrected mistake in analysis. Thanks to Brian Stansberry.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@164642 13f79535-47bb-0310-9956-ffa450edef68
2005-04-25 20:37:28 +00:00
Brett Leslie Porter
eedeb3cdb4 fix invalid project.xml descriptor
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@162107 13f79535-47bb-0310-9956-ffa450edef68
2005-04-21 02:03:27 +00:00
Robert Burrell Donkin
d452378887 Changed site URL to minotaur
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@161686 13f79535-47bb-0310-9956-ffa450edef68
2005-04-17 19:49:26 +00:00
Robert Burrell Donkin
b744f1e38e Improvements to the tech guide. Contributed by Brian Stansberry. Issue#34412.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@161682 13f79535-47bb-0310-9956-ffa450edef68
2005-04-17 19:31:59 +00:00
Robert Burrell Donkin
6133566a84 Added link to ceki's document
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@159142 13f79535-47bb-0310-9956-ffa450edef68
2005-03-27 08:53:34 +00:00
Robert Burrell Donkin
2aa2ad57f6 Demonstration/Proof of concept code. Contained is an analysis of common parent first and child first JCL use cases using convention context classloaders together with code that demonstrates the concepts involved.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@159106 13f79535-47bb-0310-9956-ffa450edef68
2005-03-26 15:16:28 +00:00
Robert Burrell Donkin
80ed7615b6 Added tech guide. This provides introductions to subjects such as classloading for expert users and developers.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@157339 13f79535-47bb-0310-9956-ffa450edef68
2005-03-13 16:21:42 +00:00
Robert Burrell Donkin
0721445959 Fixed innaccurate catch. Should catch all throwables to ensure graceful failure.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@156998 13f79535-47bb-0310-9956-ffa450edef68
2005-03-10 21:55:38 +00:00
Robert Burrell Donkin
23df003ef1 Improved javadocs for WeakHashTable. More readable explaination contributed by Simon Kitching.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@156689 13f79535-47bb-0310-9956-ffa450edef68
2005-03-09 21:13:21 +00:00
Robert Burrell Donkin
01f84f3a7c Added link to download location
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@156336 13f79535-47bb-0310-9956-ffa450edef68
2005-03-06 19:40:23 +00:00
Robert Burrell Donkin
6970b4e249 Updated status of 1.0.5 release
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@156335 13f79535-47bb-0310-9956-ffa450edef68
2005-03-06 19:28:37 +00:00
Dirk Verbeeck
267f507d8c convert .cvsignore to svn:ignore
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@155504 13f79535-47bb-0310-9956-ffa450edef68
2005-02-26 13:45:11 +00:00
Dirk Verbeeck
b56a58e5de svn:keywords correction
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@155426 13f79535-47bb-0310-9956-ffa450edef68
2005-02-26 13:10:49 +00:00
Robert Burrell Donkin
d746ff0810 Added Log4JCategory into optional distribution
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@153528 13f79535-47bb-0310-9956-ffa450edef68
2005-02-12 19:21:29 +00:00
Robert Burrell Donkin
dc14a8cfcc Added overview for optional
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@153513 13f79535-47bb-0310-9956-ffa450edef68
2005-02-12 15:56:51 +00:00
Robert Burrell Donkin
769564ac45 Reverted some changes which broke backwards compatibility
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@153511 13f79535-47bb-0310-9956-ffa450edef68
2005-02-12 14:56:21 +00:00
Robert Burrell Donkin
15ee1ee573 Added details of released versions
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@153508 13f79535-47bb-0310-9956-ffa450edef68
2005-02-12 14:27:27 +00:00
Robert Burrell Donkin
6e2408d553 Updated HEAD version.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@153296 13f79535-47bb-0310-9956-ffa450edef68
2005-02-10 21:57:11 +00:00
Robert Burrell Donkin
dc8bb733f2 Added subversion ignore for build.properties in optional
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@151750 13f79535-47bb-0310-9956-ffa450edef68
2005-02-07 20:42:52 +00:00
Robert Burrell Donkin
f87688012a Restricted warning message so that it is only displayed when the property has been set
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@151748 13f79535-47bb-0310-9956-ffa450edef68
2005-02-07 20:36:53 +00:00
Robert Burrell Donkin
399b77bf20 Fixed link to class in optional distribution
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@151637 13f79535-47bb-0310-9956-ffa450edef68
2005-02-06 23:21:34 +00:00