1
0
Commit Graph

89 Commits

Author SHA1 Message Date
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
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
Costin Manolache
7bf2ea493d Include the classpath in the available check.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138863 13f79535-47bb-0310-9956-ffa450edef68
2002-02-14 22:00:34 +00:00
Costin Manolache
2ffc19f7df Fix conditional compilation. The official distribution must include support
for all loggers, for development it should be enough to have one.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138861 13f79535-47bb-0310-9956-ffa450edef68
2002-02-14 21:04:18 +00:00
Scott Sanders
6b20d69b8e Update to reflect the move of the JDK14Logger class
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138855 13f79535-47bb-0310-9956-ffa450edef68
2002-02-03 01:44:03 +00:00
Craig R. McClanahan
97142db2c2 Add logkit.jar to "test.classpath" as well as "compile.classpath".
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138839 13f79535-47bb-0310-9956-ffa450edef68
2002-01-22 01:33:45 +00:00
Craig R. McClanahan
7ed3bbc6ee A few more tweaks to the STATUS file, add the MANIFEST.MF file for the
META-INF directory of the JAR file.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138832 13f79535-47bb-0310-9956-ffa450edef68
2002-01-08 22:55:39 +00:00
Robert Burrell Donkin
bac9c212f3 LogKit wrapper initial commit
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138830 13f79535-47bb-0310-9956-ffa450edef68
2002-01-07 23:06:10 +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
Craig R. McClanahan
377da14ae0 Add "META-INF/LICENSE.txt" for digester and logging also.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138827 13f79535-47bb-0310-9956-ffa450edef68
2002-01-05 00:34:46 +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