Simon Kitching
ad4970dbde
Fix a few trivial compiler warnings.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@406303 13f79535-47bb-0310-9956-ffa450edef68
2006-05-14 10:02:26 +00:00
Simon Kitching
75688e6a39
Remove unused variable.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@406293 13f79535-47bb-0310-9956-ffa450edef68
2006-05-14 09:35:42 +00:00
Simon Kitching
29935da25a
Fix incorrect package name in unit test. The test was still being compiled and
...
run ok; the generated .class was just ending up in an odd directory.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@406292 13f79535-47bb-0310-9956-ffa450edef68
2006-05-14 09:31:48 +00:00
Simon Kitching
7caedf2e1d
Add information about some containers effectively forcing parentFirst=true for JCL classes.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@395202 13f79535-47bb-0310-9956-ffa450edef68
2006-04-19 10:39:49 +00:00
Simon Kitching
4b002823ed
Note that building requires maven 1.x
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@395196 13f79535-47bb-0310-9956-ffa450edef68
2006-04-19 10:14:01 +00:00
Simon Kitching
ac4bd0a7cd
The use of static Log objects may or may not be safe depending on how that code is
...
intended to be deployed. It's therefore better for the examples to show the safest
approach (without static fields).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@395185 13f79535-47bb-0310-9956-ffa450edef68
2006-04-19 09:33:50 +00:00
Simon Kitching
a7349b8120
Fix problem with "suggested" alternative for invalid log adapter class.
...
Always trim whitespace from user-specified log adapter class name.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@395181 13f79535-47bb-0310-9956-ffa450edef68
2006-04-19 08:57:54 +00:00
Simon Kitching
fea8fb4449
* Log the classloader that really loaded the adapter class, rather than the one
...
we called loadClass on.
* Remove some debug code accidentally committed recently.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@394649 13f79535-47bb-0310-9956-ffa450edef68
2006-04-17 09:16:28 +00:00
Simon Kitching
cfb31332a1
* Fix bug where unit tests weren't getting executed at all (wrong test class name)
...
* Put both resources in child classloader rather than using parent, to avoid
confusion with parentFirst not being supported by PathableClassLoader.getResources.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@394603 13f79535-47bb-0310-9956-ffa450edef68
2006-04-17 03:30:38 +00:00
Simon Kitching
93cd3bf810
Add comment about getResources not respecting parentFirst
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@394564 13f79535-47bb-0310-9956-ffa450edef68
2006-04-16 21:30:57 +00:00
Simon Kitching
f32ae813fc
Remove recently-added implementation of getResources. As javadoc already stated,
...
this can't be implemented because in java 1.4 getResources is final :-(. Unit
tests that care about getResources() order will just have to use parentFirst=true.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@394563 13f79535-47bb-0310-9956-ffa450edef68
2006-04-16 21:30:19 +00:00
Simon Kitching
21d9e3c157
Fix dumb double-test. Thanks to Dennis Lundberg for pointing this out.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@394560 13f79535-47bb-0310-9956-ffa450edef68
2006-04-16 21:20:21 +00:00
Simon Kitching
1f32b55765
Improve diagnostics
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@394467 13f79535-47bb-0310-9956-ffa450edef68
2006-04-16 12:15:30 +00:00
Simon Kitching
ef627680ff
Improve diagnostic output
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@394466 13f79535-47bb-0310-9956-ffa450edef68
2006-04-16 12:11:05 +00:00
Simon Kitching
0ad40253d6
Handle case of null parent classloader
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@394463 13f79535-47bb-0310-9956-ffa450edef68
2006-04-16 12:01:57 +00:00
Simon Kitching
76cc63f74c
Improve diagnostics
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@394462 13f79535-47bb-0310-9956-ffa450edef68
2006-04-16 11:43:29 +00:00
Simon Kitching
1c67c2510f
Fix bug where priority of first commons-logging.properties file found was ignored.
...
Also improve diagnostics output.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@394461 13f79535-47bb-0310-9956-ffa450edef68
2006-04-16 11:36:37 +00:00
Simon Kitching
3555fbc436
Add unit test to verify that priority of first-found config file is respected
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@394460 13f79535-47bb-0310-9956-ffa450edef68
2006-04-16 11:35:22 +00:00
Simon Kitching
4cebeec80f
Update javadoc only
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@394459 13f79535-47bb-0310-9956-ffa450edef68
2006-04-16 11:34:33 +00:00
Simon Kitching
77abea9d19
Fix error where getResources() would return parent items first, even when
...
parentFirst attribute was set to false.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@394457 13f79535-47bb-0310-9956-ffa450edef68
2006-04-16 11:27:11 +00:00
Simon Kitching
7870118ec9
Another minor diagnostics tweak.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@381887 13f79535-47bb-0310-9956-ffa450edef68
2006-03-01 03:15:40 +00:00
Simon Kitching
d6dfbd01eb
* Fix minor syntax error in previous checkin (oops).
...
* Improve error message when custom LogFactory class cannot be instantiated due
to class cast issues.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@381886 13f79535-47bb-0310-9956-ffa450edef68
2006-03-01 03:11:41 +00:00
Simon Kitching
497c9ae5f1
Add a diagnostic message, and add some comments related to issues when a
...
LogFactory implementation cannot be instantiated.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@381879 13f79535-47bb-0310-9956-ffa450edef68
2006-03-01 02:49:34 +00:00
Simon Kitching
08cd79161b
Trivial javadoc patch to add return type info for isXXXEnabled methods.
...
Thanks to Boris Unckel for patch; see bugzilla#38783.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@381838 13f79535-47bb-0310-9956-ffa450edef68
2006-02-28 23:57:11 +00:00
Simon Kitching
eb89dd6405
Diagnostics changes only:
...
* Output correct classloader used to load LogFactory implementation
* Use word "from" instead of confusing "->"
* Other minor improvements to diagnostics messages.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@381828 13f79535-47bb-0310-9956-ffa450edef68
2006-02-28 23:32:27 +00:00
Simon Kitching
dc5a557622
Minor diagnostics tweak: use word "from" instead of confusion "->".
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@381826 13f79535-47bb-0310-9956-ffa450edef68
2006-02-28 23:31:20 +00:00
Simon Kitching
d1779b026e
Added section on Serializable classes with Log objects as members.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@381300 13f79535-47bb-0310-9956-ffa450edef68
2006-02-27 09:20:56 +00:00
Simon Kitching
f336788e71
Add Serializable tests for NoOpLog.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@381239 13f79535-47bb-0310-9956-ffa450edef68
2006-02-27 03:07:41 +00:00
Simon Kitching
0806aa3672
Move NoOp tests into separate directory.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@381238 13f79535-47bb-0310-9956-ffa450edef68
2006-02-27 02:59:47 +00:00
Simon Kitching
f3a21723bc
Execute tests from base AbstractLogTest class in addition to existing tests.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@381237 13f79535-47bb-0310-9956-ffa450edef68
2006-02-27 02:59:11 +00:00
Simon Kitching
037499be30
Add comments, clean up imports.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@381236 13f79535-47bb-0310-9956-ffa450edef68
2006-02-27 02:58:24 +00:00
Simon Kitching
3a70e9ac3a
Create dir to hold tests for NoOpLog.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@381235 13f79535-47bb-0310-9956-ffa450edef68
2006-02-27 02:48:58 +00:00
Simon Kitching
d88846ee06
Add unit tests for the LogKitLogger.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@381234 13f79535-47bb-0310-9956-ffa450edef68
2006-02-27 02:39:54 +00:00
Simon Kitching
6575f84d9e
Tab->space conversions only.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@381232 13f79535-47bb-0310-9956-ffa450edef68
2006-02-27 02:37:19 +00:00
Simon Kitching
abfdb4af34
* Make LogKit lib available to unit tests
...
* Fix minor documentation error re running specific tests
* Add documentation on enabling diagnostics during tests
* replace tabs with spaces
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@381230 13f79535-47bb-0310-9956-ffa450edef68
2006-02-27 02:31:40 +00:00
Simon Kitching
bdec71cc5a
Minor enhancement to diagnostic message.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@381224 13f79535-47bb-0310-9956-ffa450edef68
2006-02-27 02:28:39 +00:00
Simon Kitching
a6d1f7c256
Removed Serializable marker interface as it is not possible to implement this
...
correctly in all cases. AvalonLogger was introduced in 1.0.4, and was marked
Serializable. However serialization for this class was *completely* broken in
all cases in that release, so removing the Serializable marker is not considered
a binary-incompatible change.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@379680 13f79535-47bb-0310-9956-ffa450edef68
2006-02-22 04:53:08 +00:00
Simon Kitching
6a015667eb
Fix problem where getResources method causes NoSuchMethodError on 1.1 JVMs,
...
due to lack of ClassLoader.getResources method. See bugzilla #37484 .
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@375866 13f79535-47bb-0310-9956-ffa450edef68
2006-02-08 05:46:03 +00:00
Simon Kitching
30be33c7a5
Exclude LogFactoryImpl from adapters jar; it doesn't do any harm but
...
will never be used as the default implementation is always loaded
via the LogFactory classloader.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@371451 13f79535-47bb-0310-9956-ffa450edef68
2006-01-23 03:20:15 +00:00
Simon Kitching
f8d25b3b92
Update javadoc now that WeakHashtable is part of the standard distribution.
...
ServletContextCleaner is only a backup for odd corner cases.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@371450 13f79535-47bb-0310-9956-ffa450edef68
2006-01-23 03:18:47 +00:00
Simon Kitching
a341992b05
Fix javadoc to remove references to "optional" jar, as this class is
...
now in the main distribution.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@371448 13f79535-47bb-0310-9956-ffa450edef68
2006-01-23 03:10:45 +00:00
Simon Kitching
0ec19fb08c
Fix minor mistakes about WeakHashtable.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@371445 13f79535-47bb-0310-9956-ffa450edef68
2006-01-23 02:53:32 +00:00
Simon Kitching
a52c268a34
Remove comment about how parent-first loading improves JVM security; it isn't correct.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@371247 13f79535-47bb-0310-9956-ffa450edef68
2006-01-22 09:17:01 +00:00
Simon Kitching
8f9d03ad75
Fixes for trivial spelling mistakes only.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@371246 13f79535-47bb-0310-9956-ffa450edef68
2006-01-22 09:15:44 +00:00
Simon Kitching
3c9f283108
Add 1.1 release to list of available releases.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@371238 13f79535-47bb-0310-9956-ffa450edef68
2006-01-22 08:49:36 +00:00
Simon Kitching
7cd384f042
Move FAQ entries to wiki.
...
Minor grammar/spelling fixes.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@371236 13f79535-47bb-0310-9956-ffa450edef68
2006-01-22 08:33:16 +00:00
Simon Kitching
d102883962
Add info about new commons-logging-adapters jar
...
Remove info about non-existent optional jar
Update info about commons-logging-api jar
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@371233 13f79535-47bb-0310-9956-ffa450edef68
2006-01-22 08:13:27 +00:00
Simon Kitching
fb7a703424
Add more info on commons-logging-adapters.jar file.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@371232 13f79535-47bb-0310-9956-ffa450edef68
2006-01-22 08:07:54 +00:00
Simon Kitching
ecd9a70bf4
Add info about use of commons-logging.properties, including new "priority" feature.
...
Document problems with Use of static log members in library code.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@371225 13f79535-47bb-0310-9956-ffa450edef68
2006-01-22 07:29:54 +00:00
Simon Kitching
c7d566cf10
Add section for 1.1 release.
...
Other minor updates.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@371221 13f79535-47bb-0310-9956-ffa450edef68
2006-01-22 06:56:46 +00:00
Simon Kitching
7b1c2b0aac
Add explicit dependency on required maven xdoc plugin version.
...
Thanks to Niall Pemberton for the info.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@371217 13f79535-47bb-0310-9956-ffa450edef68
2006-01-22 06:22:42 +00:00
Simon Kitching
53173ea247
Update notes re api jarfile.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@371168 13f79535-47bb-0310-9956-ffa450edef68
2006-01-22 01:56:12 +00:00
Simon Kitching
c0c647127d
Exclude jdk14 logger from api jar
...
Include WeakHashtable in api jar
Make ant dependencies used in build be the same as those in the maven project.xml file.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@371164 13f79535-47bb-0310-9956-ffa450edef68
2006-01-22 01:47:01 +00:00
Simon Kitching
e628a3c9eb
Remove info about log4j 1.3, now that news has been received that it might not be incompatible after all.
...
Remove deprecation info about class that has actually been removed.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370774 13f79535-47bb-0310-9956-ffa450edef68
2006-01-20 10:21:26 +00:00
Simon Kitching
c86b4fc224
Added Specification-Title as suggested by Joerg Schaible.
...
Added Implementation-Vendor-Id as recommended at http://java.sun.com/j2se/1.5.0/docs/guide/extensions/versioning.html
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370773 13f79535-47bb-0310-9956-ffa450edef68
2006-01-20 10:16:55 +00:00
Simon Kitching
9cf2bf6e85
Fix comment only - HashMap *is* in java1.2
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370753 13f79535-47bb-0310-9956-ffa450edef68
2006-01-20 07:46:30 +00:00
Simon Kitching
8ba8c0f9ef
Fix for java1.2: in that version, Boolean.valueOf(str) returns a new instance
...
each time, not one of Boolean.TRUE or Boolean.FALSE!
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370752 13f79535-47bb-0310-9956-ffa450edef68
2006-01-20 07:45:22 +00:00
Simon Kitching
ced5aa9dc7
Add unit tests for ServletContextCleaner class.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370739 13f79535-47bb-0310-9956-ffa450edef68
2006-01-20 05:54:27 +00:00
Simon Kitching
0077ddf3cd
Added comments only.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370738 13f79535-47bb-0310-9956-ffa450edef68
2006-01-20 05:53:42 +00:00
Simon Kitching
d7d7ac9454
Expose servletapi.jar as a "logical lib" for unit tests
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370737 13f79535-47bb-0310-9956-ffa450edef68
2006-01-20 05:53:20 +00:00
Simon Kitching
c33312acd5
Add info about removal of deprecated classes.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370721 13f79535-47bb-0310-9956-ffa450edef68
2006-01-20 03:45:27 +00:00
Simon Kitching
fe23e42c56
Add 2-param version of newFactory method for backwards compatibility. As described in the
...
javadoc, it could only ever be invoked by a very weird custom subclass of LogFactory but
it was technically an incompatibility so it's now fixed.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370718 13f79535-47bb-0310-9956-ffa450edef68
2006-01-20 03:38:04 +00:00
Simon Kitching
9e1d09bc6e
More 1.1 updates (still a work-in-progress)
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370705 13f79535-47bb-0310-9956-ffa450edef68
2006-01-20 02:43:28 +00:00
Simon Kitching
56d0123465
Fixes for javadoc building.
...
Add build instructions.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370702 13f79535-47bb-0310-9956-ffa450edef68
2006-01-20 02:40:39 +00:00
Simon Kitching
3c35ab5a60
Tweaks to use libs downloaded via newish "ant getlibs" target.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370701 13f79535-47bb-0310-9956-ffa450edef68
2006-01-20 02:39:24 +00:00
Simon Kitching
7b26b353f7
Fixed javadoc warnings: @param did not match real param name.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370699 13f79535-47bb-0310-9956-ffa450edef68
2006-01-20 02:29:48 +00:00
Simon Kitching
2812c29024
Remove WeakHashtable classes from the commons-logging-adapters jarfile.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370685 13f79535-47bb-0310-9956-ffa450edef68
2006-01-20 00:39:11 +00:00
Simon Kitching
056497f88a
Added Brian Stansberry to developers list, as he did much work on 1.1 release
...
and is officially a committer but isn't around to add himself right now.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370675 13f79535-47bb-0310-9956-ffa450edef68
2006-01-19 23:57:04 +00:00
Simon Kitching
65bec30a71
Fixes due to Log4J12Logger being renamed back to Log4JLogger
...
and Log4J13Logger being removed.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370674 13f79535-47bb-0310-9956-ffa450edef68
2006-01-19 23:55:30 +00:00
Simon Kitching
468b013d05
Fixes due to renaming of Log4J12Logger back to Log4JLogger
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370673 13f79535-47bb-0310-9956-ffa450edef68
2006-01-19 23:53:55 +00:00
Simon Kitching
fc9408a84f
Remove Log4J13Logger; log4j 1.3 is not yet released.
...
Rename Log4J12Logger back to old name of Log4JLogger.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370672 13f79535-47bb-0310-9956-ffa450edef68
2006-01-19 23:52:23 +00:00
Simon Kitching
ef58065fb1
Update version to 1.1 in MANIFEST.MF
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370635 13f79535-47bb-0310-9956-ffa450edef68
2006-01-19 21:16:47 +00:00
Simon Kitching
de40e38a37
Walk the entire hierarchy of ClassLoaders, releasing memory for the
...
current webapp from each copy of LogFactory found.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370464 13f79535-47bb-0310-9956-ffa450edef68
2006-01-19 12:16:56 +00:00
Simon Kitching
c0de38481c
Some updates (not complete yet).
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370384 13f79535-47bb-0310-9956-ffa450edef68
2006-01-19 05:31:09 +00:00
Simon Kitching
19a76b429b
Add tests for new feature to disable loading of Log implementations via the TCCL.
...
Move existing tests for disabling loading of LogFactory via TCCL to subdir "logfactory".
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370031 13f79535-47bb-0310-9956-ffa450edef68
2006-01-18 03:42:52 +00:00
Simon Kitching
1b6895e3c5
Add feature to disable loading of Log implementations from the TCCL.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370030 13f79535-47bb-0310-9956-ffa450edef68
2006-01-18 03:38:38 +00:00
Simon Kitching
aecdf1ebec
Clean up imports
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370013 13f79535-47bb-0310-9956-ffa450edef68
2006-01-18 02:35:03 +00:00
Simon Kitching
1a88e2bd50
Clean up imports only.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370012 13f79535-47bb-0310-9956-ffa450edef68
2006-01-18 02:34:05 +00:00
Simon Kitching
d08dc18e1c
Clean up imports only.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@370011 13f79535-47bb-0310-9956-ffa450edef68
2006-01-18 02:33:03 +00:00
Simon Kitching
69cc4ff86d
Fix bug in test; custom MyFactory class wasn't specified in commons-logging.properties!
...
Also, use constants instead of repeating custom class name as literal.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@369755 13f79535-47bb-0310-9956-ffa450edef68
2006-01-17 11:29:42 +00:00
Simon Kitching
7ff4b00fef
Tests for new feature to disable loading of LogFactory implementation via the TCCL.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@369747 13f79535-47bb-0310-9956-ffa450edef68
2006-01-17 10:40:00 +00:00
Simon Kitching
89a0e10f95
If config file has use_tccl=false, then don't load LogFactory implementation from the TCCL.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@369745 13f79535-47bb-0310-9956-ffa450edef68
2006-01-17 10:39:30 +00:00
Simon Kitching
c9a298dd65
Remove debug print statement accidentally left in code.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@369735 13f79535-47bb-0310-9956-ffa450edef68
2006-01-17 09:54:42 +00:00
Simon Kitching
1693599580
Removed unused imports
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@369719 13f79535-47bb-0310-9956-ffa450edef68
2006-01-17 08:41:27 +00:00
Simon Kitching
9a1ec952ae
Unit tests for the new LogFactory feature which loads the commons-logging.properties
...
file with the highest priority.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@369713 13f79535-47bb-0310-9956-ffa450edef68
2006-01-17 08:01:08 +00:00
Simon Kitching
477165adb1
Implement feature to load the commons-logging.properties file with the highest priority value,
...
not just the first one found on the classpath.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@369712 13f79535-47bb-0310-9956-ffa450edef68
2006-01-17 07:56:00 +00:00
Simon Kitching
5f4f76c19c
Provide facility to add URLs to the classpath.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@369711 13f79535-47bb-0310-9956-ffa450edef68
2006-01-17 07:53:44 +00:00
Simon Kitching
dac6d6bee6
Remove unused imports
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@369709 13f79535-47bb-0310-9956-ffa450edef68
2006-01-17 07:52:41 +00:00
Simon Kitching
e934c30030
Simple code cleanup; classloader for LogFactory class is computed once at startup.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@369705 13f79535-47bb-0310-9956-ffa450edef68
2006-01-17 07:22:21 +00:00
Simon Kitching
0137795092
Tidy imports only
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@360479 13f79535-47bb-0310-9956-ffa450edef68
2006-01-01 07:42:12 +00:00
Simon Kitching
8b1398cfa1
Concrete subclass of the generic log4j tests, bound to log4j12.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@220002 13f79535-47bb-0310-9956-ffa450edef68
2005-07-21 06:09:51 +00:00
Simon Kitching
b1d6285f15
Implement a cleaner mechanism for setting up a test suite for classes whose
...
dependent libs are not present in the system classpath. The class containing
the suite() method *does not have to be* the class that contains the test
methods. By taking advantage of this, we can avoid the reflection stuff and
the trivial helper class that was introduced earlier to solve this same
problem.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@220001 13f79535-47bb-0310-9956-ffa450edef68
2005-07-21 06:07:30 +00:00
Simon Kitching
72a6e4f9f6
log4j tests now all work fine with <batchtest> so remove special case code for log4j.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209738 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 11:46:41 +00:00
Simon Kitching
697b414639
Fix up log4j12 tests so no log4j lib needs to be in the classpath
...
when the suite() method is called on any TestCase class.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209737 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 11:45:25 +00:00
Simon Kitching
a9958f04f8
Remove obsolete unit test files; see StandardTests class and its concrete subclasses.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209731 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 10:09:39 +00:00
Simon Kitching
41c4b10250
Major restructure of log4j unit tests. All the same tests are done as before,
...
but in a (hopefully) clearer and more maintainable way.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209730 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 10:08:25 +00:00
Simon Kitching
8831d63879
Minor tweak to javadocs
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209729 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 10:07:13 +00:00
Simon Kitching
9d0c1a7422
Rename LogTest to LogTestCase for consistency.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209713 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 07:08:54 +00:00
Simon Kitching
bfb095df60
Fail the build if any unit test fails. Also removed some redundant stuff.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209712 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 07:03:41 +00:00
Simon Kitching
4bd1bd70a0
* renamed test cases from Test.java to TestCase.java for consistency.
...
* removed unneeded suite and constructor methods.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209711 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 07:02:20 +00:00