1
0
Commit Graph

22 Commits

Author SHA1 Message Date
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
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
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
27559f2f8c Cosmetic changes, and correct copyright dates. Add simple overview
with pointer to the real documentation, and a package.html for the
o.a.c.l.impl package.  Bring various documentation points up to date
with the actual current functionality.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138961 13f79535-47bb-0310-9956-ffa450edef68
2003-03-30 23:42:36 +00:00
Craig R. McClanahan
2783ad6bc1 Deprecte Log4JCategoryLog (because Log4J has deprecated o.a.l.Category),
and replace it with a new Log4JLogger implementation that wraps an
o.a.l.Logger instance instead.

Update docco to reflect that Log4J support is now for version 1.2 or later
(when o.a.l.Logger was introduced).

PR:  13118
Submitted by:  Paul Campbell <seapwc at halycon.com>


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138940 13f79535-47bb-0310-9956-ffa450edef68
2002-11-23 03:49:40 +00:00
Craig R. McClanahan
08ee4c68c3 Cosmetic changes in comments, to keep the JDK 1.4 standard JavaDoc
doclet from whining.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138894 13f79535-47bb-0310-9956-ffa450edef68
2002-06-15 18:13:02 +00:00
Craig R. McClanahan
740d078137 Make discovery process on LogSource compatible with that used by
LogFactory with respect to system properties.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138876 13f79535-47bb-0310-9956-ffa450edef68
2002-03-04 00:41:37 +00:00
Craig R. McClanahan
6a315e28ed Improvements to the new LogFactory APIs, based on feedback from Costin and
Jon plus some additional thought about using it in a multi-class-loader
environment (like Tomcat):

* Changed newFactory() to getFactory(), and implemented a cache of
  previously created factory instances (one per class loader).  This
  avoids potentially expensive and redundant discovery operations.

* Added convenient static getLog() method so a typical application
  component can initialize it's Log instance like this:

    Log log = LogFactory.getLog("com.mycompany.mypackage.MyClass");

* Added variants of getInstance() and getLog() that take a Class
  parameter instead of a String.  LogSource had this convenience
  feature, and there's no reason not to keep it.

* Added release() and releaseAll() methods to instruct the factory
  instances to release any cached references to other LogFactory
  or Log instances.  This is important, for example, if you put
  commons-logging.jar in Tomcat's shared "lib" directory, and then
  use the application reload facility.  The references maintained
  here would otherwise prevent garbage collection of the old
  webapp class loader once a reload takes place.

* Added a note on getInstance() that you can make no assumptions
  about whether or not the actual Log instance you get back is
  shared or not.  The actual sharability is a feature of the
  LogFactory implementation you are using, and what kind of a
  class loader environment you ae installing.

* Deprecated LogSource, but left it there to ease transition of
  existing code using it.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138858 13f79535-47bb-0310-9956-ffa450edef68
2002-02-14 00:19:03 +00:00
Scott Sanders
644168defb New import because of move
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138853 13f79535-47bb-0310-9956-ffa450edef68
2002-02-03 01:31:54 +00:00
Scott Sanders
c0cc00947a Use Hashtable instead of HashMap, for JDK 1.1
compatibility, and to solve sync issues


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138851 13f79535-47bb-0310-9956-ffa450edef68
2002-02-03 01:28:00 +00:00
Robert Burrell Donkin
7d84a88865 Removed AbstractLog and associated test case, removed log level constants from Log interface, added renamed level constants to SimpleLog and fixed SimpleLog configuration bug
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138836 13f79535-47bb-0310-9956-ffa450edef68
2002-01-17 22:55:43 +00:00
Craig R. McClanahan
b39b2191aa Implement the agreed-upon API changes for the commons-logging package.
If the changes are too radical, I tagged things with "before_clean_up" to make
it easy to go back.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138835 13f79535-47bb-0310-9956-ffa450edef68
2002-01-17 01:47:49 +00:00
Craig R. McClanahan
36652638b4 Make LogSource more applet-friendly by swallowing any security exception
thrown when System.getProperty() is called.

Submitted by:  Anthony Martin <Anthony@TRAMS.com>


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138833 13f79535-47bb-0310-9956-ffa450edef68
2002-01-16 00:54:51 +00:00
Craig R. McClanahan
af62db1c56 Add a new Log implementation for JDK 1.4 (or later) logging.
Default behavior of LogSource.getInstance() is now:
* If Log4J is available, return an instance of Log4JCategoryLog
* If JDK 1.4 is available, return an instance of Jdk14Logger
* Otherwise, return an instance of NoOpLogger

As before, this default behavior can be overridden with a system
property, or by calling LogSource.setLogImplementation(), as described
in the package Javadocs.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138829 13f79535-47bb-0310-9956-ffa450edef68
2002-01-05 22:40:40 +00:00
Robert Burrell Donkin
09277f80cb Added link to java doc comments (so that it's easier to find the method description)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138828 13f79535-47bb-0310-9956-ffa450edef68
2002-01-05 15:55:00 +00:00
Robert Burrell Donkin
18ee959b10 Same implementation but added long license and java doc comments
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138824 13f79535-47bb-0310-9956-ffa450edef68
2002-01-03 18:58:00 +00:00
Craig R. McClanahan
ad40b8fdb4 Migrate the "logging" package from jakarta-commons-sandbox.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138814 13f79535-47bb-0310-9956-ffa450edef68
2001-12-04 04:28:03 +00:00
Morgan James Delagrange
85cb60fc43 no message
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138813 13f79535-47bb-0310-9956-ffa450edef68
2001-08-09 14:54:42 +00:00
Morgan James Delagrange
3fdbfd2e86 proposal for stand-alone logging component
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138811 13f79535-47bb-0310-9956-ffa450edef68
2001-08-08 20:35:22 +00:00
Rodney Waldhoff
db6faedfe4 refactored logging so that log4j is no longer a runtime depedency
updates to documentation to come


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138807 13f79535-47bb-0310-9956-ffa450edef68
2001-08-02 16:27:06 +00:00