1
0
Commit Graph

1711 Commits

Author SHA1 Message Date
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
Richard A. Sitze
470f3338d0 Resolve NullPointerExceptions, remove redundant checks, minor refactoring to facilitate readability.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138890 13f79535-47bb-0310-9956-ffa450edef68
2002-06-11 22:29:14 +00:00
Costin Manolache
83e704b910 Add the simple logger to the '-api' jar.
It seems all is working fine now, including the log4j JMX stuff in the
default config ( adding the 'setName()' sovled the problems )


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138889 13f79535-47bb-0310-9956-ffa450edef68
2002-06-07 20:22:29 +00:00
Costin Manolache
b2038dcc68 Make sure we are initialized for all constructors. Change the name of the
default appender.

I still have some problems with log4j's JMX if I construct the logger
via API ( i.e. no log4j.properties ) - but that shouldn't affect too
many people, so I'll leave it.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138888 13f79535-47bb-0310-9956-ffa450edef68
2002-06-07 00:22:54 +00:00
Costin Manolache
5183b765a3 Build commons-logging-api.jar, with no logger adapters. This will allow the
logger and the adapters to sit in the WEB-INF ( and multiple loggers to be used ),
while having commons-logging in the root classloader.

( this in turns allow various components that are loaded with the root loader
to log ).


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138887 13f79535-47bb-0310-9956-ffa450edef68
2002-06-06 22:11:28 +00:00
Costin Manolache
d7208355d3 Few fixes:
- if no log4j.properties is found, we'll construct a 'sane' config ( to be
consistent with the other loggers ). The appender must have a name ( otherwise
the JMX stuff in log4j will complain )

- fix the class name for the log4j factory


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138886 13f79535-47bb-0310-9956-ffa450edef68
2002-06-06 22:09:09 +00:00
Costin Manolache
97e35d1253 Added a class-path directive, that avoids the need to set CLASSPATH manually.
( we should probably add the other loggers - only what is found is used,
it doesn't hurt anyone ).

Even if most containers will automatically add whatever is in lib, if you
use it in command line things are more difficult.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138885 13f79535-47bb-0310-9956-ffa450edef68
2002-05-09 22:01:25 +00:00
Costin Manolache
b75a58b4af Few small (?) fixes:
- for JDK1.4, include the correct class/method. This uses a hack to
extract the information from the stack trace - probably slow, but
it's better to get the correct information.

- for log4j, check if log4j is initialized ( by checking if any appenders
are present ). Set a default configuration if it is not initialized.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138884 13f79535-47bb-0310-9956-ffa450edef68
2002-05-06 21:32:37 +00:00
Scott Sanders
739f6cecfe Modified to use the same classloader when defaulting
to the default log factory


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138883 13f79535-47bb-0310-9956-ffa450edef68
2002-05-04 19:50:29 +00:00
Craig R. McClanahan
025dc566b9 The Jdk14Logger wrapper should not be modifying the configuration of the
underlying logger.

Submitted by:  Christophe Felix-Henry <cfelixhenry at scort.com>


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138882 13f79535-47bb-0310-9956-ffa450edef68
2002-04-29 16:48:09 +00:00
Craig R. McClanahan
6bafa3f510 Modify the logger discovery contract to perform the complete set of checks
even in environments (such as an Applet) where System.getProperty() throws
a security exception.  Previously, this was causing the checks for Log4J or
JDK 1.4 logging to be skipped.

PR:  Bugzilla #7468
Reported By:  Tim Vernum (tpv at spamcop.net)


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138881 13f79535-47bb-0310-9956-ffa450edef68
2002-03-31 00:31:49 +00:00
Craig R. McClanahan
4487056de8 Remove forgotten debugging statement.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138880 13f79535-47bb-0310-9956-ffa450edef68
2002-03-15 22:57:36 +00:00
Robert Burrell Donkin
324af077b3 Corrected missing end tag in java doc comments
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138879 13f79535-47bb-0310-9956-ffa450edef68
2002-03-11 22:40:19 +00:00
Costin Manolache
27347eec03 Patch from Richard Sitze <rsitze at us.ibm.com>.
> I've updated the Log4JCategoryLog.java to use the Log4J method Category.log
> () which allows the fully qualified class name (FQCN) of  the user's logger
> class to be passed through into Log4J.  In this case the logger class FQCN
> will be "org.apache.commons.logging.impl.Log4JCategoryLog".  This allows
> Log4J to correctly identify the location in the code from which the logger
> is being called, if required.  Without this Log4J reports that the calling
> location is ALWAYS Log4JCategoryLog.java:132.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138878 13f79535-47bb-0310-9956-ffa450edef68
2002-03-07 22:32:47 +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
5f390b02fc When selecting the default logging implementation on a 1.4 system, ensure
that the commons-logging wrapper is also available before selecting it.
This avoids problems when using a copy of commons-logging.jar compiled on
a 1.3 system (and therefore missing the wrappe class) when executing on a
1.4 system.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138875 13f79535-47bb-0310-9956-ffa450edef68
2002-02-27 18:01:41 +00:00
Costin Manolache
078804d827 Deal with the posiblity that a commons-logging is loaded in
a loader, and the thread loader is set to point to a different
loader that doesn't include logging ( or to a wrong value ).

This happens when logging is used in certain container components,
where the thread loader will point to an app that may not
have/use logging.

XXX What's the right order ? From a 'feature' point of view,
it's better to try the thread loader first, so apps can
override the default. From a security point of view,
we should try the Class.forName() first, i.e. whatever
is loaded in the parent loader.

The current fix leaves the original order ( with thread loader
used if available ).


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138874 13f79535-47bb-0310-9956-ffa450edef68
2002-02-26 19:00:27 +00:00
James Strachan
18a4e8fa33 Added catch of security exceptions which are thrown if using commons-logging inside a container, such as the J2EE SDK server.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138873 13f79535-47bb-0310-9956-ffa450edef68
2002-02-26 04:06:22 +00:00
Craig R. McClanahan
dee096a758 Reset version number for development. Update copyright year (so that
it will be right the next time).


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138872 13f79535-47bb-0310-9956-ffa450edef68
2002-02-20 23:02:01 +00:00
Craig R. McClanahan
a2abbb8b5c Update version number for release build.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138870 13f79535-47bb-0310-9956-ffa450edef68
2002-02-20 22:07:04 +00:00