1
0
Commit Graph

198 Commits

Author SHA1 Message Date
Craig R. McClanahan
a1b55ec925 Factor the actual writing out of log() into a new write() method so that
subclasses can easily specialize this function, without having to specialize
the creation of the message to be written.

PR:  Bugzilla #27135
Submitted by:  Aaron Hamid <arh14 at cornell.edu>


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139016 13f79535-47bb-0310-9956-ffa450edef68
2004-03-01 02:12:48 +00:00
Robert Burrell Donkin
bb88e1999b Added missing end tags. Contributed by Dennis Lundberg.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139015 13f79535-47bb-0310-9956-ffa450edef68
2004-02-29 09:37:37 +00:00
Robert Burrell Donkin
7930ee6520 Moved license below xml declaration. Contributed by Dennis Lundberg.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139014 13f79535-47bb-0310-9956-ffa450edef68
2004-02-29 09:37:09 +00:00
Craig R. McClanahan
af56b24b58 Update release notes for all the changes (so far) to be included in a
commons-logging 1.0.4 release.  Tweak documentation to reflect the
availability of two new Log implementations (Avalon Framework and
LumberJack).


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139013 13f79535-47bb-0310-9956-ffa450edef68
2004-02-28 23:20:57 +00:00
Craig R. McClanahan
37c89a6d88 Make this implementation Serializable as well.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139012 13f79535-47bb-0310-9956-ffa450edef68
2004-02-28 23:05:01 +00:00
Craig R. McClanahan
538ee2bd6d Eliminate spurious second "-" character when showShortLogname=true.
PR:  Bugzilla #25940
Submitted by: Dennis Lundberg <dennis.lundberg at mdh.se>


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139011 13f79535-47bb-0310-9956-ffa450edef68
2004-02-28 23:00:57 +00:00
Craig R. McClanahan
d96e2a0af2 Clean up a Javadoc generation warning.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139010 13f79535-47bb-0310-9956-ffa450edef68
2004-02-28 22:16:16 +00:00
Craig R. McClanahan
ef2a5e4383 Finish migration to the new Apache License (version 2.0):
* Add updated LICENSE.txt and new NOTICE.txt files.
* Add license header to currently unlicensed text files
  (html, xml, properties).


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139009 13f79535-47bb-0310-9956-ffa450edef68
2004-02-28 22:10:53 +00:00
Craig R. McClanahan
514f666482 Phase 1 of updating [logging] to the Apache License version 2.0. Executed
the "ReplaceLicense" utility in the committers module.  Individual cleanups
and the addition of licenses to currently unlicensed files will follow in
a separate commit.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139008 13f79535-47bb-0310-9956-ffa450edef68
2004-02-28 21:46:46 +00:00
Robert Burrell Donkin
c83a3e1b5a Fixes for typos and speiling mistakes in the javadocs Contributed by Dennis Lundberg.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139007 13f79535-47bb-0310-9956-ffa450edef68
2004-02-28 17:54:14 +00:00
Henri Yandell
b8683537ac fixed xhtml
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139006 13f79535-47bb-0310-9956-ffa450edef68
2004-02-19 03:28:52 +00:00
Henri Yandell
3da3d5fc6f translated PROPOSAL.html to proposal.xml
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139005 13f79535-47bb-0310-9956-ffa450edef68
2004-02-19 03:11:46 +00:00
Mark R. Diggory
6a3bb712f3 Adding Commons Site Look & Feel configuration to all jakarta-commons/<project>/project.properties
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139004 13f79535-47bb-0310-9956-ffa450edef68
2004-02-18 04:11:35 +00:00
Robert Burrell Donkin
6ec31816e3 Corrections to documentation. Submitted by Dennis Lundberg.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139003 13f79535-47bb-0310-9956-ffa450edef68
2004-02-16 21:28:09 +00:00
Robert Burrell Donkin
0541ed8d99 Added fine logging logo created by Tim.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139002 13f79535-47bb-0310-9956-ffa450edef68
2004-02-15 10:53:25 +00:00
Robert Burrell Donkin
028cb876a4 Added maven build (aimed at documentation). This isn't totally satisfactory (for example, I've stripped out the unit tests) and the user guide formatting isn't brilliant. But i feel that i want to be able to get some feedback and there are some other priorities. i'll try to get to this work later.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139001 13f79535-47bb-0310-9956-ffa450edef68
2004-02-15 10:28:56 +00:00
Robert Burrell Donkin
400cb6b6ec Added maven build (aimed at documentation). This isn't totally satisfactory (for example, I've stripped out the unit tests) and the user guide formatting isn't brilliant. But i feel that i want to be able to get some feedback and there are some other priorities. i'll try to get to this work later.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139000 13f79535-47bb-0310-9956-ffa450edef68
2004-02-15 09:39:17 +00:00
Mark R. Diggory
63f5caa8d3 Moving extension of global project.xml to ../commons-build/project.xml on those project.xml files which originally had it in place.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138999 13f79535-47bb-0310-9956-ffa450edef68
2004-02-10 19:15:05 +00:00
Timothy O'Brien
4b738b61fc Commit'd a commons logging logo
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138998 13f79535-47bb-0310-9956-ffa450edef68
2004-02-10 02:43:00 +00:00
Robert Burrell Donkin
41c6d63086 Fixed some bad links. (Thanks to James Mitchell for the spot.)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138997 13f79535-47bb-0310-9956-ffa450edef68
2003-10-13 13:44:16 +00:00
Robert Burrell Donkin
4d51df78d4 Fixed typos in apache licenses
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138996 13f79535-47bb-0310-9956-ffa450edef68
2003-10-09 21:37:48 +00:00
Robert Burrell Donkin
c81ff3807f Corrected licenses to match jakarta-commons standard.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138995 13f79535-47bb-0310-9956-ffa450edef68
2003-10-05 15:59:26 +00:00
Craig R. McClanahan
2db31c969e Remove "final" declaration on the Log implementations that still have it
(SimpleLog was already non-final) so that developers can subclass to
specialize the existing behavior.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138994 13f79535-47bb-0310-9956-ffa450edef68
2003-10-02 16:17:57 +00:00
Craig R. McClanahan
27c9920b42 Correct a usage example in the Package Description javadocs.
PR:  Bugzilla #18889
Submitted By:  Thai Ha (thaiha at psv.com.vn)


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138993 13f79535-47bb-0310-9956-ffa450edef68
2003-08-16 23:46:31 +00:00
Craig R. McClanahan
a4eb04167c Add support for Lumberjack (a project that supports JSR-47 compatible
logging on a JDK 1.2 or JDK 1.3 system).

PR:  Bugzilla #21455.
Submitted By:  Vince Eagen <vince256 at comcast.net>


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138992 13f79535-47bb-0310-9956-ffa450edef68
2003-08-16 22:35:16 +00:00
Craig R. McClanahan
e7c2d81417 Make the remaining non-deprecated Log implementations also implement
Serializable, and enhance the unit tests for JDK 1.4 an Log4J logging
to validate the ability to deserialize and use such instances.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138991 13f79535-47bb-0310-9956-ffa450edef68
2003-08-16 21:58:59 +00:00
Craig R. McClanahan
45c7fb43cb Make o.a.c.l.impl.SimpleLog Serializable.
Add more comprehensive unit tests for SimpleLog, including the ability
to serialize and deserialize instances.

This work will form the basis for making similar changes to the other
Log implementations (and their corresponding test cases).


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138990 13f79535-47bb-0310-9956-ffa450edef68
2003-08-16 21:25:54 +00:00
Craig R. McClanahan
7e5ed8d7dd Cosmetic changes only - clean up JDK 1.4.2 javadoc generation warnings.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138989 13f79535-47bb-0310-9956-ffa450edef68
2003-08-16 18:21:50 +00:00
Richard A. Sitze
9b81cd7318 *** empty log message ***
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138988 13f79535-47bb-0310-9956-ffa450edef68
2003-07-18 14:15:50 +00:00
Richard A. Sitze
8ab8f5e09b Cleanup imports.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138987 13f79535-47bb-0310-9956-ffa450edef68
2003-07-18 14:14:16 +00:00
Richard A. Sitze
76e5c8aaf7 Cleanup imports & some static method calls.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138986 13f79535-47bb-0310-9956-ffa450edef68
2003-07-18 14:11:45 +00:00
Craig R. McClanahan
5ac51cd843 Make SimpleLog more friendly to the security manager in an applet
environment, by swallowing any security exceptions when looking
up system properties that are not accessible.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138985 13f79535-47bb-0310-9956-ffa450edef68
2003-07-15 15:47:38 +00:00
Robert Burrell Donkin
482961e7b5 Modified build script so that user guide is copied into distribution.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138984 13f79535-47bb-0310-9956-ffa450edef68
2003-05-22 13:55:28 +00:00
Robert Burrell Donkin
7539845c43 Made implementation of AvalonLogger more robust (avoiding NPEs when nulls are passed in) together with a testcase. Improved build by compiling tests for only those optional components whose dependencies are present. Submitted by Neeme Praks.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138983 13f79535-47bb-0310-9956-ffa450edef68
2003-05-14 11:14:24 +00:00
Robert Burrell Donkin
b1f47cf55f Fixed mistake I made with Avalon Framework version numbers. Submitted by Neeme Praks.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138982 13f79535-47bb-0310-9956-ffa450edef68
2003-05-14 10:47:56 +00:00
Robert Burrell Donkin
3de4f334c8 Added AvalonLogger which wraps the logger used by the Avalon framework. Also added an optional dependency on avalon-framework.jar. Added better warnings to build about which loggers are going to be created. Submitted by Neeme Praks.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138981 13f79535-47bb-0310-9956-ffa450edef68
2003-05-07 16:23:36 +00:00
Robert Burrell Donkin
dfd06ec619 Updated status with new optional dependency
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138980 13f79535-47bb-0310-9956-ffa450edef68
2003-05-07 16:20:49 +00:00
Robert Burrell Donkin
d618afdfc9 Added AvalonLogger which wraps the logger used by the Avalon framework. Also added an optional dependency on avalon-framework.jar. Added better warnings to build about which loggers are going to be created.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138979 13f79535-47bb-0310-9956-ffa450edef68
2003-05-07 16:02:20 +00:00
Robert Burrell Donkin
11c4638fda Improved documentation.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138978 13f79535-47bb-0310-9956-ffa450edef68
2003-05-01 16:55:29 +00:00
Robert Burrell Donkin
d8abaeb2b5 Improved error handling. Added custom message when the configured LogFactory implementation does not extend LogFactory. This should make it easier to diagnose when a user has made a mistake in the logging configuration, for example by setting LogFactory to a Log implementation.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138977 13f79535-47bb-0310-9956-ffa450edef68
2003-05-01 10:32:36 +00:00
Richard A. Sitze
8d5b06149b Eliminate reference to log4j from manifest classpath
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138976 13f79535-47bb-0310-9956-ffa450edef68
2003-04-17 15:13:01 +00:00
Richard A. Sitze
d5f08a7710 Remove unnecessary test constructors, let run with my archaic version of JUnit.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138975 13f79535-47bb-0310-9956-ffa450edef68
2003-04-10 22:40:37 +00:00
Robert Burrell Donkin
a9bd59d60a Updated to reflect 1.0.3 release
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138974 13f79535-47bb-0310-9956-ffa450edef68
2003-04-07 09:36:10 +00:00
Robert Burrell Donkin
3675338d7a Added version details for dependencies.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138972 13f79535-47bb-0310-9956-ffa450edef68
2003-04-06 21:18:35 +00:00
Robert Burrell Donkin
2faad3cd17 Preparations for 1.0.3 release
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138970 13f79535-47bb-0310-9956-ffa450edef68
2003-04-06 20:37:32 +00:00
Craig R. McClanahan
25ea9e7c90 Include the release notes in the distribution.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138969 13f79535-47bb-0310-9956-ffa450edef68
2003-04-04 03:13:30 +00:00
Craig R. McClanahan
b25ab60184 Update release notes for a proposed 1.0.3 release of Commons Logging.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138968 13f79535-47bb-0310-9956-ffa450edef68
2003-04-04 02:49:10 +00:00
Craig R. McClanahan
c2f6f68394 Per discussion on COMMONS-DEV and bug reports 17561 and 17894, deprecate
the "proxy log factory" class o.a.c.l.impl.Log4jFactory (which didn't really
accomplish any functional purpose), and remove from LogFactoryImpl the
creation and use of a proxy instance.

PR:  Bugzilla #17561
Submitted by:  Felix Janssen <thundur at mayaxatl.org>

PR:  Bugzilla #17894
Submitted by:  Nathan Niesen <nathann at objectfx.com>


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138967 13f79535-47bb-0310-9956-ffa450edef68
2003-04-02 01:53:04 +00:00
Craig R. McClanahan
a6ec91bec0 Remove attempt to configure the root logger if it has not been done so.
* Out of scope for commons-logging, which promises only to wrap
  USE of the logging implementation, not configuration.

* Incorrect assumption that not having appenders configured on the
  root logger is an error.

* Log4J will auto-configure itself if a log4j.xml or log4j.properties
  file is present, so out-of-the-box use with no code is as simple
  as dropping a properties file in the correct place.

PR:  Bugzilla #13201
Submitted by: Steven Caswell <stevencaswell at apache.org>


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138966 13f79535-47bb-0310-9956-ffa450edef68
2003-04-02 01:29:38 +00:00
Craig R. McClanahan
7c71a7d917 Wrapper:
- Refactor the setup of class loaders so that it is clearer what is
  going on
- For the Log4J tests, add the custom Appender implementation to
  whichever class loader Log4J is put in
- Set and reset the thread context class loader to more accurately
  simulate the environment of a servlet container.

build.xml:
- Implement the multi-classloader test scenarios for Log4J, equivalent
  to those for JDK 1.4.

We now have a robust testing environment to catch any possible regressions
when modifying the functionality (such as ripping out Log4jFactory, as
discussed on COMMONS-DEV).

I don't have time to do the corresponding test scenarios for Avalon LogKit,
but anyone who wants to do so is welcome to create them.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138965 13f79535-47bb-0310-9956-ffa450edef68
2003-04-02 00:50:49 +00:00