e0d9632d8b
Rename testcase files, as batch junit testing only detects classes ending in "TestCase".
Simon Kitching
2006-07-20 21:59:50 +00:00
23d8dd0c2c
Only count security exceptions before a message is actually logged, as j.u.logging does (and should) generate security exceptions.
Simon Kitching
2006-07-20 21:52:52 +00:00
111ea9540b
* Add method getSystemProperty which fetches system properties using an AccessController, so they are accessable by a trusted JCL lib called from untrusted code. * Add method getContextClassLoaderInternal to fetch context classloader using an AccessController, as the parent LogFactory class no longer exposes this (restricted) object for any subclass to access.
Simon Kitching
2006-07-20 21:08:49 +00:00
6bad2dd657
* INCOMPATIBLE CHANGE (minor): protected method getContextClassloader no longer uses an AccessController. This was a (minor) security flaw. Instead, behaviour is reverted to pre-1.1 behaviour where no AccessController is used, and a new private method getContextClassloaderInternal has been created. The chance of breaking valid user code is extremely small here. Note that this forces subclass LogFactoryImpl to provide its own copy of getContextClassloaderInternal, as the parent no longer exposes the (restricted) context classloader object. * Get system properties using an AccessController so they are accessable by a trusted JCL lib called from untrusted code. * Revert recent patch to run entire static initializer under an AccessController, as the chances of creating a security flaw are too high. The specific problem this patch was intended to fix has been addressed by fetching specific system properties via an AccessController.
Simon Kitching
2006-07-20 21:06:09 +00:00
beeeaba151
Fix LOGGING-106 where JCL wouldn't start when run under a SecurityManager that refuses access to system properties. Also use an AccessController so that a signed JCL will work in an unsigned app; note that there appears to be other places where we are missing AccessControllers too.
Simon Kitching
2006-07-19 23:31:00 +00:00
7d08044587
Add more unit tests for SecurityManager/AccessController issues
Simon Kitching
2006-07-19 23:26:49 +00:00
fc6da5291a
Add unit tests to check behaviour when running in applet-like environments with restrictive security managers.
Simon Kitching
2006-07-10 10:25:49 +00:00
ea5bc9e2a3
Remove weird unicode char in comments that causes compile warnings
Simon Kitching
2006-07-10 06:03:14 +00:00
d821ed3ea0
Corrected site host name.
Robert Burrell Donkin
2006-05-20 18:18:49 +00:00
efcc4756eb
Switched url from bugzilla to jira
Henri Yandell
2006-05-16 05:48:03 +00:00
177f614925
Added properties for Maven 2.
Robert Burrell Donkin
2006-05-15 22:07:29 +00:00
ad4970dbde
Fix a few trivial compiler warnings.
Simon Kitching
2006-05-14 10:02:26 +00:00
75688e6a39
Remove unused variable.
Simon Kitching
2006-05-14 09:35:42 +00:00
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.
Simon Kitching
2006-05-14 09:31:48 +00:00
4ec63842f7
Added links to release 1.1 documentation.
Robert Burrell Donkin
2006-05-14 09:13:10 +00:00
24ca0f30f3
Updated to next SNAPSHOT
Robert Burrell Donkin
2006-05-13 11:37:02 +00:00
b999269b0b
Added tag for 1.1 Release
Robert Burrell Donkin
2006-05-09 21:51:34 +00:00
c9397236b3
Final preparations for JCL 1.1 Release
Robert Burrell Donkin
2006-05-09 21:45:08 +00:00
eda999f15d
Added some notes about how to use the build.properties.sample file.
Robert Burrell Donkin
2006-05-04 21:39:21 +00:00
62daf181b7
Preparations for Release candidate 11
Robert Burrell Donkin
2006-05-04 19:51:25 +00:00
639c7b2328
Removed empty ul tags.
Robert Burrell Donkin
2006-05-04 19:39:01 +00:00
86ebf5f6ac
Updated contents. Snippet is generated from a stylesheet. Will commit stylesheet to committers later.
Robert Burrell Donkin
2006-05-04 17:46:51 +00:00
35e8d9a94e
Emphasized that DIAGNOSTICS_DEST_PROPERTY is a constant.
Robert Burrell Donkin
2006-05-03 20:58:34 +00:00
481a7fc7ca
Corrected non-harmful mistake spotted by Dennis Lundberg.
Robert Burrell Donkin
2006-05-03 20:38:01 +00:00
12fcab3cb6
Updated release notes to correct issues highlighted by Dennis.
Robert Burrell Donkin
2006-05-03 20:16:16 +00:00
04305e4cc5
Add some JavaDocs. Correct JavaDocs. Replace tab-characters with spaces.
Dennis Lundberg
2006-05-03 09:29:00 +00:00
96854d71f6
Added some JavaDocs. Removed a copy-pasted comment that didn't belong there.
Dennis Lundberg
2006-05-03 09:25:54 +00:00
5f4391761d
Correct JavaDoc links (@see).
Dennis Lundberg
2006-05-03 09:20:24 +00:00
3b07a502f7
Changed the wording to make things clearer.
Dennis Lundberg
2006-05-03 09:15:45 +00:00
ce80ab132e
Correct spelling.
Dennis Lundberg
2006-05-01 21:39:36 +00:00
cd2e8b9657
Replaced method introduced in JDK1.4 with clean implementation.
Robert Burrell Donkin
2006-04-22 11:38:25 +00:00
18e3a6fdad
Preparations for release candidate 10
Robert Burrell Donkin
2006-04-22 11:26:45 +00:00
60369ce85f
Preparing for release candidate 9.
Robert Burrell Donkin
2006-04-22 10:50:32 +00:00
f05517ec95
Need to match at least the first 5 characters.
Robert Burrell Donkin
2006-04-19 18:46:30 +00:00
5342620a9f
Added a little explaination concerning the recommendation.
Robert Burrell Donkin
2006-04-19 18:35:15 +00:00
7caedf2e1d
Add information about some containers effectively forcing parentFirst=true for JCL classes.
Simon Kitching
2006-04-19 10:39:49 +00:00
4b002823ed
Note that building requires maven 1.x
Simon Kitching
2006-04-19 10:14:01 +00:00
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).
Simon Kitching
2006-04-19 09:33:50 +00:00
a7349b8120
Fix problem with "suggested" alternative for invalid log adapter class. Always trim whitespace from user-specified log adapter class name.
Simon Kitching
2006-04-19 08:57:54 +00:00
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.
Simon Kitching
2006-04-17 09:16:28 +00:00
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.
Simon Kitching
2006-04-17 03:30:38 +00:00
93cd3bf810
Add comment about getResources not respecting parentFirst
Simon Kitching
2006-04-16 21:30:57 +00:00
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.
Simon Kitching
2006-04-16 21:30:19 +00:00
21d9e3c157
Fix dumb double-test. Thanks to Dennis Lundberg for pointing this out.
Simon Kitching
2006-04-16 21:20:21 +00:00
1f32b55765
Improve diagnostics
Simon Kitching
2006-04-16 12:15:30 +00:00
ef627680ff
Improve diagnostic output
Simon Kitching
2006-04-16 12:11:05 +00:00
0ad40253d6
Handle case of null parent classloader
Simon Kitching
2006-04-16 12:01:57 +00:00
76cc63f74c
Improve diagnostics
Simon Kitching
2006-04-16 11:43:29 +00:00
1c67c2510f
Fix bug where priority of first commons-logging.properties file found was ignored. Also improve diagnostics output.
Simon Kitching
2006-04-16 11:36:37 +00:00
3555fbc436
Add unit test to verify that priority of first-found config file is respected
Simon Kitching
2006-04-16 11:35:22 +00:00
4cebeec80f
Update javadoc only
Simon Kitching
2006-04-16 11:34:33 +00:00
77abea9d19
Fix error where getResources() would return parent items first, even when parentFirst attribute was set to false.
Simon Kitching
2006-04-16 11:27:11 +00:00
be29881f14
Preparing for release candidate 8
Robert Burrell Donkin
2006-04-09 15:09:17 +00:00
393dc1462b
Made logkit tests optional. Moved pathable tests into optional log4j section since they rely on that implementation.
Robert Burrell Donkin
2006-04-09 11:27:22 +00:00
744f07bc1c
Ran linkcheck. Added commented out report.
Robert Burrell Donkin
2006-04-09 09:34:52 +00:00
b8c8273ffa
Added back comment about other websphere versions that was removed by accident.
Robert Burrell Donkin
2006-04-09 09:10:09 +00:00
54803e9e01
Fixed internal indexing. JRun ships JCL but may not use a custom implementation.
Robert Burrell Donkin
2006-04-09 09:07:20 +00:00
06f4d75043
Ammended release notes to reflect shipping JDK logger in API jar.
Robert Burrell Donkin
2006-04-06 19:03:17 +00:00
f0490d0570
Restored JDK14 to API jar. This is for drop in backwards compatibility for Tomcat.
Robert Burrell Donkin
2006-04-06 18:57:36 +00:00
378b7205b8
Preparations for release candidate 7.
Robert Burrell Donkin
2006-04-06 18:53:50 +00:00
12db408e92
Upgraded manifest to reflect upcoming release candidate.
Robert Burrell Donkin
2006-03-15 21:06:38 +00:00
b64c22a2fa
Added correct project.css this time (I hope).
Robert Burrell Donkin
2006-03-14 22:09:57 +00:00
1221167446
Added a page on building. Copied from IO.
Robert Burrell Donkin
2006-03-14 22:02:08 +00:00
d12114c532
Missed change to commons links.
Robert Burrell Donkin
2006-03-14 21:51:42 +00:00
2d3b5ac751
Upgraded site so that commons build is not longer needed.
Robert Burrell Donkin
2006-03-14 21:40:32 +00:00
1cfc5f3532
Upgraded version in preparation for new release candidate.
Robert Burrell Donkin
2006-03-14 21:28:38 +00:00
a5b7839fec
Added contents section. Improved readability of custom implementation prose. Speiling fixes. Thanks to Simon Kitching for spotting incongruent grammar by I.
Robert Burrell Donkin
2006-03-11 10:22:36 +00:00
1b10d09a00
First draft on troubleshooting WAS (and other containers that use custom LogFactory implementations).
Robert Burrell Donkin
2006-03-09 20:21:28 +00:00
dfbafcfb30
Improved diagnostics and added more information to the message thrown when a custom LogFactory cannot be loaded due to classloader incompatibilities.
Robert Burrell Donkin
2006-03-07 21:54:57 +00:00
f8c59c7d27
Updated guide to reflect changes made to diagnostics format.
Robert Burrell Donkin
2006-03-01 20:32:07 +00:00
7870118ec9
Another minor diagnostics tweak.
Simon Kitching
2006-03-01 03:15:40 +00:00
d6dfbd01eb
* Fix minor syntax error in previous checkin (oops). * Improve error message when custom LogFactory class cannot be instantiated due to class cast issues.
Simon Kitching
2006-03-01 03:11:41 +00:00
497c9ae5f1
Add a diagnostic message, and add some comments related to issues when a LogFactory implementation cannot be instantiated.
Simon Kitching
2006-03-01 02:49:34 +00:00
08cd79161b
Trivial javadoc patch to add return type info for isXXXEnabled methods. Thanks to Boris Unckel for patch; see bugzilla#38783.
Simon Kitching
2006-02-28 23:57:11 +00:00
eb89dd6405
Diagnostics changes only: * Output correct classloader used to load LogFactory implementation * Use word "from" instead of confusing "->" * Other minor improvements to diagnostics messages.
Simon Kitching
2006-02-28 23:32:27 +00:00
dc5a557622
Minor diagnostics tweak: use word "from" instead of confusion "->".
Simon Kitching
2006-02-28 23:31:20 +00:00
d1779b026e
Added section on Serializable classes with Log objects as members.
Simon Kitching
2006-02-27 09:20:56 +00:00
f336788e71
Add Serializable tests for NoOpLog.
Simon Kitching
2006-02-27 03:07:41 +00:00
0806aa3672
Move NoOp tests into separate directory.
Simon Kitching
2006-02-27 02:59:47 +00:00
f3a21723bc
Execute tests from base AbstractLogTest class in addition to existing tests.
Simon Kitching
2006-02-27 02:59:11 +00:00
037499be30
Add comments, clean up imports.
Simon Kitching
2006-02-27 02:58:24 +00:00
3a70e9ac3a
Create dir to hold tests for NoOpLog.
Simon Kitching
2006-02-27 02:48:58 +00:00
d88846ee06
Add unit tests for the LogKitLogger.
Simon Kitching
2006-02-27 02:39:54 +00:00
6575f84d9e
Tab->space conversions only.
Simon Kitching
2006-02-27 02:37:19 +00:00
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
Simon Kitching
2006-02-27 02:31:40 +00:00
bdec71cc5a
Minor enhancement to diagnostic message.
Simon Kitching
2006-02-27 02:28:39 +00:00
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.
Simon Kitching
2006-02-22 04:53:08 +00:00
57e0762d38
Added section to release notes about JDK compatibility.
Robert Burrell Donkin
2006-02-16 22:01:49 +00:00
d2b4d4a9aa
A few cosmetic changes. I think I prefer jar file to jarfile.
Robert Burrell Donkin
2006-02-16 21:55:45 +00:00
22822656d2
Preparing for release candidate 5.
Robert Burrell Donkin
2006-02-16 20:53:27 +00:00
a79517ab30
After some consideration removed the indexes. JCL isn't signed and so anyone using it in an applet would need to rejar and sign in any case. They can index at the same time. Probably safer this way.
Robert Burrell Donkin
2006-02-16 20:29:01 +00:00
bf61edb4c3
Reverted 375631 (null getParent). After discussions about the relevant javadocs, it was established that the interpretation which lead to this patch is probably wrong. The original implementation supplies null to Class.forName which should create the class from the boot loader.
Robert Burrell Donkin
2006-02-14 22:38:07 +00:00
5a64bf30d6
Copied SimpleLog description to user guide (from Javadocs) and edited. Issue #38643.
Robert Burrell Donkin
2006-02-14 21:39:55 +00:00
d849cc1744
Modify maven build to add two non-standard attributes to the jar's manifest file to indicate the values of "maven.compile.source" and "maven.compile.target". Also modify the build to include an "Implementation-Vendor-Id" of "org.apache" in the jar's manifest.
Niall Kegan Pemberton
2006-02-14 01:15:14 +00:00
dc20cc4e5c
Fixed typo. Thanks to Simon Kitching.
Robert Burrell Donkin
2006-02-13 22:47:45 +00:00