1
0
Commit Graph

112 Commits

Author SHA1 Message Date
Simon Kitching
c68672222d Add dependency on prepare targets for new compile targets, so that if they
are run independently the destination dirs will exist.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@201921 13f79535-47bb-0310-9956-ffa450edef68
2005-06-26 23:08:36 +00:00
Simon Kitching
e939036229 Improve warning messages for missing libs (thanks to Dennis Lundberg).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@201824 13f79535-47bb-0310-9956-ffa450edef68
2005-06-26 04:17:11 +00:00
Simon Kitching
0ecda83b98 Split compile target into separate pieces in order to assist gump.
Target compile-only is now:
  show-lib-presence,compile-non-log4j,compile-log4j12,compile-log4j13,build-jar


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@201823 13f79535-47bb-0310-9956-ffa450edef68
2005-06-26 04:11:08 +00:00
Simon Kitching
98c3f0eb0a Change version# to 1.1-dev
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@201549 13f79535-47bb-0310-9956-ffa450edef68
2005-06-24 03:02:13 +00:00
Simon Kitching
549db6b069 Split Log4JLogger into Log4J12Logger and Log4J13Logger
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@193079 13f79535-47bb-0310-9956-ffa450edef68
2005-06-23 05:40:32 +00:00
Simon Kitching
330e17e0ed The created jarfiles now have the version# embedded in their names, so the
test wrapper class can't just hard-wire their names any more. Instead, we
pass the jarfile names in from the build.xml file as system properties.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@191630 13f79535-47bb-0310-9956-ffa450edef68
2005-06-21 06:21:55 +00:00
Simon Kitching
d3c6139f66 Minor cleanups.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@190899 13f79535-47bb-0310-9956-ffa450edef68
2005-06-16 11:35:22 +00:00
Simon Kitching
70458b7b6e Add an implementation of ServletContextListener for use in avoiding memory leaks in webapps.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@190891 13f79535-47bb-0310-9956-ffa450edef68
2005-06-16 09:59:40 +00:00
Simon Kitching
2b9b9b6f24 Add version into jarname as done by maven, eg commons-logging-1.x.x.jar
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@190888 13f79535-47bb-0310-9956-ffa450edef68
2005-06-16 09:23:03 +00:00
Simon Kitching
c563002215 Create commons-logging-adapters.jar file in dist target.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@190887 13f79535-47bb-0310-9956-ffa450edef68
2005-06-16 08:06:43 +00:00
Simon Kitching
d71598bd0f Exclude package.html files from the jar files.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@179559 13f79535-47bb-0310-9956-ffa450edef68
2005-06-02 08:35:54 +00:00
Simon Kitching
df0d0ed341 Ensure class files generated are compatible with 1.1 JVMs
(although we only support 1.2+ at the moment).


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@179511 13f79535-47bb-0310-9956-ffa450edef68
2005-06-02 05:05:18 +00:00
Robert Burrell Donkin
6e2408d553 Updated HEAD version.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@153296 13f79535-47bb-0310-9956-ffa450edef68
2005-02-10 21:57:11 +00:00
Robert Burrell Donkin
5627a9fc8b Fixed bug in distribution build. Issue 33323. Contributed by Brian Stansberry.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@151619 13f79535-47bb-0310-9956-ffa450edef68
2005-02-06 19:44:27 +00:00
Robert Burrell Donkin
7a03f06584 LogFactory's Hashtable implementation (used to store LogFactoryImpl by classloader) can now be subclassed. This will default to WeakHashtable when this is present on the classpath, Hashtable otherwise. The implementation class can be specified by a system property. Based on a contribution by Brian Stansberry.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139056 13f79535-47bb-0310-9956-ffa450edef68
2004-11-10 23:00:47 +00:00
Robert Burrell Donkin
23e71e6d58 Added new optional subcomponent consisting of non-core implementations. Initial contents MemoryLog, a log implementation intended for use when unit testing. Issue #27663. Contributed by Joerg Schaible.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139055 13f79535-47bb-0310-9956-ffa450edef68
2004-11-04 23:03:59 +00:00
Robert Burrell Donkin
ed0269ef72 New test case for simple log date time setting
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139033 13f79535-47bb-0310-9956-ffa450edef68
2004-05-30 10:32:25 +00:00
Robert Burrell Donkin
f3152683ee Added optional tests for Log4JLogger against 1.2.x
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139030 13f79535-47bb-0310-9956-ffa450edef68
2004-05-19 21:02:10 +00:00
Craig R. McClanahan
0421b481aa Tweak the release notes to include the last enhancement.
Update version number to 1.0.4 in both build.xml and MANIFEST.MF (in the
original Ant based build mechanisms, we used to use filter replacement
so you only had to change this in one place; is there some technique to
regain that benefit that works with both Ant and Maven?).


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139023 13f79535-47bb-0310-9956-ffa450edef68
2004-03-06 22:20:54 +00:00
Dirk Verbeeck
8cdc7ae4e4 remove usersguide.html to fix gump build
(patch from Antoine L�vy-Lambert)


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139020 13f79535-47bb-0310-9956-ffa450edef68
2004-03-03 19:13:48 +00:00
Robert Burrell Donkin
c350b20082 Changed build script so that the javadocs contain the license boilerplate and also that the NOTICE file is copied to the dist directory (as well as the LICENSE file).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139018 13f79535-47bb-0310-9956-ffa450edef68
2004-03-02 21:02:51 +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
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
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
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
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
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
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
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
Craig R. McClanahan
5347bd9e55 Copy LICENSE.txt file into distribution, and make sure it is included in the
JAR files, without going to the directory above the top-level directory.
This will make it easier to build commons-logging from source distros.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138964 13f79535-47bb-0310-9956-ffa450edef68
2003-03-31 00:38:22 +00:00
Craig R. McClanahan
b3039e1bbf When copying MANIFEST.MF files for the JAR files, use the one that has
already been filtered to get the right version number in it.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138962 13f79535-47bb-0310-9956-ffa450edef68
2003-03-31 00:20:19 +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
e462bae3af Add basic tests for Log4J. Still need to add the multi-classloader
scenarios.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138960 13f79535-47bb-0310-9956-ffa450edef68
2003-03-30 05:22:50 +00:00
Craig R. McClanahan
4ed6819dc3 Add test scenarios where two levels of class loader hierarchies are created -
one exactly like the default configuration of Tomcat 4.1 (with c-l placed
inside the webapp) and one where you put c-l in the parent class loader
(in place of commons-logging-api.jar) so webapps do not have to.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138959 13f79535-47bb-0310-9956-ffa450edef68
2003-03-30 02:30:37 +00:00
Craig R. McClanahan
916223fc8d Add a more thorough set of unit tests for using JDK 1.4 logging. Right now,
the tests run when everything is in the system class loader -- need to add
execution wrappers for two-tier class loaders where:

  * commons-logging.jar is in the parent and test execution is in the child

  * commons-logging-api.jar is in the parent and test execution plus
    commons-logging.jar is in the child

to simulate container environments like that you get running inside Tomcat.

Later on, we'll want an analogous set of tests for Log4J.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138958 13f79535-47bb-0310-9956-ffa450edef68
2003-03-29 22:04:54 +00:00
Craig R. McClanahan
cf2cfe7196 Avoid breaking the build when a developer has "commons-logging.jar" set
in a build.properties file already.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138956 13f79535-47bb-0310-9956-ffa450edef68
2003-03-17 03:24:14 +00:00
Costin Manolache
0f011cbf65 That's what was breaking the build in tomcat5.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138955 13f79535-47bb-0310-9956-ffa450edef68
2003-03-13 21:19:33 +00:00
Craig R. McClanahan
7b532cd48c Update the build process to skip all the Log4J implementation classes
if Log4J is not present.

PR:  Bugzilla #16358
Submitted by:  Jeremias Maerki <jeremias at apache.org>


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138952 13f79535-47bb-0310-9956-ffa450edef68
2003-02-01 04:29:05 +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
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
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
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
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
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
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
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