a843d5dbc0
Build commons-logging-adapters.jar from maven build.
Simon Kitching2005-06-16 04:10:24 +00:00
9ecd27bf48
Fixed copy-and-paste error in getConfigurationValue when getting from system property. Thanks to Brian Stansberry for spotting this.
Simon Kitching2005-06-14 11:09:44 +00:00
b35e8d3b53
Avoid wrapping exception - patch by Brian Stansberry
Simon Kitching2005-06-14 10:23:08 +00:00
a3f8e5302a
Merge in the allow-flawed branch, as there were no objections.
Simon Kitching2005-06-14 10:03:48 +00:00
ca0188c41e
Fix bug introduced by recent changes. Thanks to Brian Stansberry for the patch.
Simon Kitching2005-06-06 10:33:37 +00:00
17c6d98369
Remove ugly LOG_INTERFACE string and weird log-class-lookup code from within the reportInvalidLogAdapter method.
Simon Kitching2005-06-02 10:28:35 +00:00
eb93a324e4
Clean up LoadTest testcase and include in standard test suite.
Simon Kitching2005-06-02 09:12:24 +00:00
d71598bd0f
Exclude package.html files from the jar files.
Simon Kitching2005-06-02 08:35:54 +00:00
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.
Simon Kitching2005-06-02 07:39:39 +00:00
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.
Simon Kitching2005-06-02 06:31:52 +00:00
df0d0ed341
Ensure class files generated are compatible with 1.1 JVMs (although we only support 1.2+ at the moment).
Simon Kitching2005-06-02 05:05:18 +00:00
15956fee82
Change to discovery process: testing whether various logging libraries are available is now done by trying to actually create an instance.
Simon Kitching2005-06-02 04:09:16 +00:00
195ac37a76
Add better reporting when jdk14 handler setup isn't right.
Simon Kitching2005-05-23 01:41:23 +00:00
75c8135c03
Fix javadoc and fix java1.5 compile warnings.
Simon Kitching2005-05-23 01:04:54 +00:00
a408e51f46
Ensure class file format is compatible with JVM 1.1
Simon Kitching2005-05-23 01:02:02 +00:00
a04edd5ec6
Updated obsolete goal java:jar to jar:jar Removed obsolete exclude of CVS subdirs
Simon Kitching2005-05-23 01:01:36 +00:00
cb2ddfd9cc
Improved demonstration build by automatically cleaning. Contributed by Ceki Gülcü.
Robert Burrell Donkin2005-05-18 21:15:14 +00:00
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).
Simon Kitching2005-05-17 04:27:57 +00:00
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)
Simon Kitching2005-05-17 01:43:32 +00:00
0a54560d5c
oops .. should have added myself to the developers list before doing any commits.
Simon Kitching2005-05-16 11:41:35 +00:00
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.
Simon Kitching2005-05-16 10:41:44 +00:00
3200e8aa2e
Add test case for situation where context classloader is null.
Simon Kitching2005-05-10 00:47:03 +00:00
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.
Simon Kitching2005-05-10 00:45:18 +00:00
b6b750fc9c
Added note about new, improved terminology coined by Mike Colbert.
Robert Burrell Donkin2005-05-04 19:29:01 +00:00
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.
Robert Burrell Donkin2005-03-26 15:16:28 +00:00
80ed7615b6
Added tech guide. This provides introductions to subjects such as classloading for expert users and developers.
Robert Burrell Donkin2005-03-13 16:21:42 +00:00
0721445959
Fixed innaccurate catch. Should catch all throwables to ensure graceful failure.
Robert Burrell Donkin2005-03-10 21:55:38 +00:00
23df003ef1
Improved javadocs for WeakHashTable. More readable explaination contributed by Simon Kitching.
Robert Burrell Donkin2005-03-09 21:13:21 +00:00
09534c54b7
Fixes for mavenized build. Hopefully, this should allow javedocs to be deployed to the website.
Robert Burrell Donkin2005-02-06 23:02:34 +00:00
e5dae08b4f
Documentation for improved memory management and optional jar. Contributed by Brian Stansberry. Issue no 31286.
Robert Burrell Donkin2005-02-06 21:21:56 +00:00
5627a9fc8b
Fixed bug in distribution build. Issue 33323. Contributed by Brian Stansberry.
Robert Burrell Donkin2005-02-06 19:44:27 +00:00
e7c56e483f
Improved housekeeping and simplified code for WeakHashTable. Issue#31286. Submitted by Brian Stansberry.
Robert Burrell Donkin2004-12-15 10:35:19 +00:00
00e49fe6cf
Improved test cases for WeakHashMap classloading. Contributed by Brian Stansberry.
Robert Burrell Donkin2004-11-22 22:50:51 +00:00
a78b72ab6d
Improvements to WeakHashTable. Values are now held with hard references and a reference queue is polled during a purge. Contributed by Brian Stansberry.
Robert Burrell Donkin2004-11-17 23:23:22 +00:00
00b2ab86bf
Added code to purge entries who references have been collected. Test contributed by Brian Stansberry.
Robert Burrell Donkin2004-11-11 22:31:05 +00:00
c24811762a
Updated WeakHashtable so that the null handling symantics match the superclass. Unit test contributed by Brian Stansberry.
Robert Burrell Donkin2004-11-11 21:43:43 +00:00
7a03f06584
LogFactory's Hashtable implementation (used to store LogFactoryImpl by classloader) can now be subclassed. This will default to WeakHashtable when this is present on the classpath, Hashtable otherwise. The implementation class can be specified by a system property. Based on a contribution by Brian Stansberry.
Robert Burrell Donkin2004-11-10 23:00:47 +00:00
23e71e6d58
Added new optional subcomponent consisting of non-core implementations. Initial contents MemoryLog, a log implementation intended for use when unit testing. Issue #27663. Contributed by Joerg Schaible.
Robert Burrell Donkin2004-11-04 23:03:59 +00:00
697ba5c648
Remove the deprecated Log4JCategoryLog class, now that the trunk of Log4J has finally removed the Category class. In C-L, this has been deprecated for a very long time, and is replaced (invisibly for most users) by Log4JLogger.
Craig R. McClanahan2004-10-29 05:37:59 +00:00
433ad87cd1
Fix addressing null pointer when logging is loaded by boot classloader for JRE's that return a null classloader in this situtation. Issue #31710. Patch contributed by David Ferrero.
Robert Burrell Donkin2004-10-17 09:14:10 +00:00
7e6c9ff377
Avalon Logger was broken by Serialization changes 13 months ago. Fixing and made not Serializable since it cannot be Serializable if a Logger is explicitly passed in.
Peter A Royal Jr2004-09-27 16:21:40 +00:00
77f3dd0e7c
Adding postGoal to copy css stylesheets from commons-build when site is generated. Please maintain this modification for consistent look and feel across commons subprojects.
Mark R. Diggory2004-08-17 15:38:47 +00:00
4d10d0df0c
Enhanced simple log so that the date and time can be set. Bugzilla issue #27528. Contributed by Dennis Lundberg.
Robert Burrell Donkin2004-05-29 10:43:35 +00:00
3a7e975403
Modifications required to ensure Log4JLogger works with both 1.2.x and 1.3 Log4J. Submitted by Ceki Gulcu.
Robert Burrell Donkin2004-05-19 21:01:23 +00:00
d3ebabcd5d
Altered test case so that it will work both with head and 1.2.x of Log4J.
Robert Burrell Donkin2004-05-19 20:59:56 +00:00
444a6b2829
New test case which tests the executation of all the basic methods.
Robert Burrell Donkin2004-05-19 20:58:52 +00:00
9abb63c9f5
Removed extend, migrated repository, Apache project metadata and adjusted build settings appropriately.
Mark R. Diggory2004-04-09 19:58:06 +00:00
0c87efaf84
added missing build and report sections to subproject project.xml files, subprojects are responsible for generating the reports they want to have published and subproject define build parameters they require.
Mark R. Diggory2004-04-06 17:39:33 +00:00
c69e5fd057
Enhance the error message produced when the isAssignableFrom() check in getLogConstructor() fails. If it is due to the fact that o.a.c.l.Log is visible more than once (the typical cause), say this explicitly.
Craig R. McClanahan2004-03-06 21:52:59 +00:00
b7a766054f
If an InvocationTargetException is thrown during the construction of a new Log instance, unwrap it so that the message on the LogConfigurationException identifies the actual cause of the problem.
Craig R. McClanahan2004-03-06 21:25:36 +00:00
8cdc7ae4e4
remove usersguide.html to fix gump build (patch from Antoine L�vy-Lambert)
Dirk Verbeeck2004-03-03 19:13:48 +00:00
13d4fa5cc5
Removed old userguide. It's now replaced with version generated by maven.
Robert Burrell Donkin2004-03-02 21:49:49 +00:00
c350b20082
Changed build script so that the javadocs contain the license boilerplate and also that the NOTICE file is copied to the dist directory (as well as the LICENSE file).
Robert Burrell Donkin2004-03-02 21:02:51 +00:00
b78be57e16
Switching to usage of menu's dtd to insert commons navigation items, using common-menus entity to reference commons menues in navigation.xml, sorting is done by Maven.
Mark R. Diggory2004-03-02 03:27:47 +00:00