1
0
Commit Graph

780 Commits

Author SHA1 Message Date
Robert Burrell Donkin
4f6bc55f0e Added a FAQ entry about thread safety based on a paragraph suggested by John Yu.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138944 13f79535-47bb-0310-9956-ffa450edef68
2002-12-12 19:56:44 +00:00
Richard A. Sitze
6daa5b9439 Duh. Different take on this - why do we preload in the first place?
New methods check System & local properties directly.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138943 13f79535-47bb-0310-9956-ffa450edef68
2002-12-12 19:49:30 +00:00
Richard A. Sitze
b122313d94 1. Wrapped System.getProperties with doPrivileged.
2. Moved catch.  If System properties cannot be loaded,
    then don't abandon effort, but go on to loading
    properties file.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138942 13f79535-47bb-0310-9956-ffa450edef68
2002-12-12 19:23:34 +00:00
Craig R. McClanahan
4e0ad3c8ff It helps if you actually add the new file as well.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138941 13f79535-47bb-0310-9956-ffa450edef68
2002-11-23 03:50:13 +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
e0be9b7850 Add a getCategory() method that returns the underlying Log4J Category
instance, analogous to the getLogger() method on JDK14Logger.

PR:  Bugzilla 14155
Submitted by:  Chris Hagmann <ch at ipin.com>


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138939 13f79535-47bb-0310-9956-ffa450edef68
2002-11-23 03:25:33 +00:00
Craig R. McClanahan
03645a6b4a Update remaining documentation that says the default Log implementation
is NoOpLog.  It was changed to SimpleLog a while back.

PR:  Bugzilla #14571
Submitted by:  David M. Karr <dmkarr@earthlink.net>


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138938 13f79535-47bb-0310-9956-ffa450edef68
2002-11-23 03:07:58 +00:00
Richard A. Sitze
a661c64c6d *** empty log message ***
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138937 13f79535-47bb-0310-9956-ffa450edef68
2002-11-11 16:52:54 +00:00
Dion Gillard
c4cefe5632 Ignore logs
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138936 13f79535-47bb-0310-9956-ffa450edef68
2002-11-01 03:25:56 +00:00
Dion Gillard
4ed0fed1c8 Woops
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138935 13f79535-47bb-0310-9956-ffa450edef68
2002-11-01 03:25:43 +00:00
Dion Gillard
3b71f2efc9 Added logs
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138934 13f79535-47bb-0310-9956-ffa450edef68
2002-11-01 03:24:08 +00:00
Rodney Waldhoff
478b89b021 inceptionYear is 2001
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138933 13f79535-47bb-0310-9956-ffa450edef68
2002-10-31 16:18:15 +00:00
Dion Gillard
1e48b00b78 Fix typo - thanks Martin
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138932 13f79535-47bb-0310-9956-ffa450edef68
2002-10-31 03:49:33 +00:00
Dion Gillard
84fb63cf44 Fix URL
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138931 13f79535-47bb-0310-9956-ffa450edef68
2002-10-31 03:03:37 +00:00
Craig R. McClanahan
4453cfb4fa Avoid name clashes on local property names "commons-logging-api.jar" and
"commons-logging.jar" which will not work correctly for any developer who
has such properties defined in a "${user.home}/build.properties" file.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138930 13f79535-47bb-0310-9956-ffa450edef68
2002-10-28 00:41:29 +00:00
Costin Manolache
8daf0f8bce A small change that allows the quick build of commons-logging jars.
The way I use it is:
   <ant dir="${cvs.base}/jakarta-commons/logging" target="compile-only" >
       <property name="commons-logging-api.jar" location="${build.dir}/lib/commons-logging-api.jar" />
        <property name="commons-logging.jar" location="${build.dir}/lib/commons-logging.jar" />
        <property name="build.home" value="${build.dir}" />
    </ant>

If it brakes something or any other problem - please let me know.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138929 13f79535-47bb-0310-9956-ffa450edef68
2002-10-24 18:26:21 +00:00
Richard A. Sitze
41a175c6bd typo - slap me for not building/testing after EVERY minor change..
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138928 13f79535-47bb-0310-9956-ffa450edef68
2002-10-19 17:38:06 +00:00
Richard A. Sitze
3a5b034cef - code cleanup, refactoring, and corrected a few undiscoved bugs..
- Bugzilla 13157 - Log4j takes undue precedence over Log override.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138927 13f79535-47bb-0310-9956-ffa450edef68
2002-10-19 17:25:18 +00:00
Richard A. Sitze
f76f188696 Dump stack trace through logger, not stdout
(preservers sequence of buffered output).


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138926 13f79535-47bb-0310-9956-ffa450edef68
2002-10-19 17:19:05 +00:00
Richard A. Sitze
dfcf03ab41 - Added new LogTest that exercises factory
- log statements now show implementation class
   (helpfull for visual verification that expected logger was found).


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138925 13f79535-47bb-0310-9956-ffa450edef68
2002-10-19 17:14:26 +00:00
Sean Sullivan
a3566a19b7 added null parameter log method calls
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138924 13f79535-47bb-0310-9956-ffa450edef68
2002-10-18 04:19:56 +00:00
Richard A. Sitze
03368dd582 Bugzilla Defect 10825 [thanks for the patch & the education!]
Added real text & exceptions to tests.. it's harder to read :-(


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138923 13f79535-47bb-0310-9956-ffa450edef68
2002-10-17 23:00:04 +00:00
Sean Sullivan
8c5d183b40 removed junk methods
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138922 13f79535-47bb-0310-9956-ffa450edef68
2002-10-11 05:02:59 +00:00
Sean Sullivan
398e84d1b6 added test code
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138921 13f79535-47bb-0310-9956-ffa450edef68
2002-10-11 04:53:21 +00:00
Sean Sullivan
3bd953f430 unit test code
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138920 13f79535-47bb-0310-9956-ffa450edef68
2002-10-11 04:52:59 +00:00
Robert Burrell Donkin
4f4e1d7a3c Updated STATUS document with release information.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138919 13f79535-47bb-0310-9956-ffa450edef68
2002-09-27 18:39:12 +00:00
Richard A. Sitze
72e4cef37b javadoc cleanup
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138917 13f79535-47bb-0310-9956-ffa450edef68
2002-09-27 02:16:44 +00:00
Richard A. Sitze
c53d47efc9 javadoc cleanup
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138916 13f79535-47bb-0310-9956-ffa450edef68
2002-09-27 02:14:57 +00:00
Richard A. Sitze
b891e01d0c Version 1.0.2
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138915 13f79535-47bb-0310-9956-ffa450edef68
2002-09-27 02:02:06 +00:00
Richard A. Sitze
fd531862b1 Adding self as contributor.. only thing new here is updating the doc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138914 13f79535-47bb-0310-9956-ffa450edef68
2002-09-25 22:06:19 +00:00
Richard A. Sitze
5b662d1710 Correct 2 problems:
1. getContextClassLoader is priviledged, protect for J2EE environs.
2. getContextClassLoader can & does return null.  Code wasn't
    checking for this properly.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138913 13f79535-47bb-0310-9956-ffa450edef68
2002-08-30 03:23:34 +00:00
Richard A. Sitze
8f27abb3e4 *** empty log message ***
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138912 13f79535-47bb-0310-9956-ffa450edef68
2002-08-23 14:55:37 +00:00
Richard A. Sitze
76fd384d20 Corrections to document regarding NLS enablement, wording was to strong.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138911 13f79535-47bb-0310-9956-ffa450edef68
2002-08-23 14:55:32 +00:00
Craig R. McClanahan
2ba41d354f Update version number back for development.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138910 13f79535-47bb-0310-9956-ffa450edef68
2002-08-13 01:22:33 +00:00
Craig R. McClanahan
56a5121b56 Update version number for release tagging.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138908 13f79535-47bb-0310-9956-ffa450edef68
2002-08-13 01:17:54 +00:00
Richard A. Sitze
5c1867cae3 Correct caching behavior... I broke it a while back, but
I've learned much since then...


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138907 13f79535-47bb-0310-9956-ffa450edef68
2002-08-12 21:01:07 +00:00
Jason van Zyl
1da90cf28c o With the addition of a <sourceModification> element I can now build
commons-logging with Java 1.3. The Jdk14Logger class is exclude if
  you don't have what you need to build it.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138905 13f79535-47bb-0310-9956-ffa450edef68
2002-08-09 19:59:49 +00:00
Richard A. Sitze
21e56ae851 Subtle little bug... if we cannot find OUR Log4J wrapper, then
we cannot support Log4j...


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138904 13f79535-47bb-0310-9956-ffa450edef68
2002-08-09 18:47:34 +00:00
Richard A. Sitze
75d031c682 Compatible change, reveal internal properties that are useful for
discovery...  ?should discovery use reflection to try to find these,
in absence of explicitly provided values?


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138903 13f79535-47bb-0310-9956-ffa450edef68
2002-08-09 16:18:36 +00:00
Jason van Zyl
ef6490d411 o adding junit for the tests
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138902 13f79535-47bb-0310-9956-ffa450edef68
2002-07-26 20:29:46 +00:00
Jason van Zyl
446d7740c9 o cleaning up the maven descriptors for the projects so that a site
with decent names is generated (link to come)

o made all the projects use a LICENSE.txt file. one this doesn't wig
  out windows users and the checkstyle report likes to have one to
  make sure that all sources files have a license present so if they
  don't it can be reported.

o using the reactor tag in its first forms to provide a mechanism
  to build the entire commons (still problems with detecting
  JDK 1.4) and to generate a site where the navigation is gleaned
  from the project themselves and don't have to kept in sync
  manually.

o added a little front-end site deployer.

PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138901 13f79535-47bb-0310-9956-ffa450edef68
2002-07-25 02:36:45 +00:00
Jason van Zyl
a42095eb11 o maven goodies
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138900 13f79535-47bb-0310-9956-ffa450edef68
2002-07-23 16:55:55 +00:00
Richard A. Sitze
51532168ec Fixed nits & rewording to help distinguish between util/tooling and framework/middleware.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138899 13f79535-47bb-0310-9956-ffa450edef68
2002-07-22 22:32:52 +00:00
Richard A. Sitze
06f8b88aa1 Users guide, including best-practices notes (from my point of view). Not everyone agrees
with me on all the details, so feel free to raise issues/add your own ideas, etc.  If we have
conflicting ideas, that's probably OK as long as the pros/cons are presented along with
differing opinions.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138898 13f79535-47bb-0310-9956-ffa450edef68
2002-07-22 20:41:12 +00:00
Richard A. Sitze
52ba50f028 bug 10480: handle null message without throwing NPE
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138897 13f79535-47bb-0310-9956-ffa450edef68
2002-07-17 16:42:40 +00:00
Craig R. McClanahan
d3b8b85e48 Make SimpleLog check for its "simplelog.properties" resource in the thread
context class loader, if present, while using the same trick LogFactory
does to protect JDK 1.1 compatibility.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138895 13f79535-47bb-0310-9956-ffa450edef68
2002-06-15 20:54:48 +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
Richard A. Sitze
6b15ddfe75 Resolve NullPointerExceptions
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138893 13f79535-47bb-0310-9956-ffa450edef68
2002-06-11 22:47:21 +00:00
Richard A. Sitze
2a26463d60 Correct new method name
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138892 13f79535-47bb-0310-9956-ffa450edef68
2002-06-11 22:35:33 +00:00
Richard A. Sitze
329f05ee4f Resolve NullPointerExceptions, remove redundant checks, minor refactoring to facilitate readability.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138891 13f79535-47bb-0310-9956-ffa450edef68
2002-06-11 22:34:32 +00:00