svn:keywords correction
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@155426 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
$Id: RELEASE-NOTES.txt,v 1.8 2004/09/27 16:21:40 proyal Exp $
|
$Id$
|
||||||
|
|
||||||
Commons Logging Package
|
Commons Logging Package
|
||||||
Version 1.0.4
|
Version 1.0.4
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<h1>The Jakarta Commons <em>Logging</em> Component</h1>
|
<h1>The Jakarta Commons <em>Logging</em> Component</h1>
|
||||||
$Id: STATUS.html,v 1.16 2004/02/28 23:20:57 craigmcc Exp $<br />
|
$Id$<br />
|
||||||
<a href="#Introduction">[Introduction]</a>
|
<a href="#Introduction">[Introduction]</a>
|
||||||
<a href="#Dependencies">[Dependencies]</a>
|
<a href="#Dependencies">[Dependencies]</a>
|
||||||
<a href="#Release Info">[Release Info]</a>
|
<a href="#Release Info">[Release Info]</a>
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ import org.apache.commons.logging.Log;
|
|||||||
* The default log level is TRACE.</p>
|
* The default log level is TRACE.</p>
|
||||||
* <p>The code borrows heavily from the SimpleLog class.</p>
|
* <p>The code borrows heavily from the SimpleLog class.</p>
|
||||||
* @author Jörg Schaible
|
* @author Jörg Schaible
|
||||||
* @version $Id: MemoryLog.java,v 1.1 2004/11/04 23:01:39 rdonkin Exp $
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public class MemoryLog implements Log {
|
public class MemoryLog implements Log {
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import org.apache.commons.logging.impl.WeakHashtableTest;
|
|||||||
* All tests should be written into separate <code>TestSuite</code>'s
|
* All tests should be written into separate <code>TestSuite</code>'s
|
||||||
* and added to this. Don't clutter this class with implementations. </p>
|
* and added to this. Don't clutter this class with implementations. </p>
|
||||||
*
|
*
|
||||||
* @version $Revision: 1.2 $
|
* @version $Revision$
|
||||||
*/
|
*/
|
||||||
public class TestAll extends TestCase {
|
public class TestAll extends TestCase {
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ package org.apache.commons.logging;
|
|||||||
*
|
*
|
||||||
* @author <a href="mailto:sanders@apache.org">Scott Sanders</a>
|
* @author <a href="mailto:sanders@apache.org">Scott Sanders</a>
|
||||||
* @author Rod Waldhoff
|
* @author Rod Waldhoff
|
||||||
* @version $Id: Log.java,v 1.19 2004/06/06 21:16:04 rdonkin Exp $
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public interface Log {
|
public interface Log {
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ package org.apache.commons.logging;
|
|||||||
* factory methods.</p>
|
* factory methods.</p>
|
||||||
*
|
*
|
||||||
* @author Craig R. McClanahan
|
* @author Craig R. McClanahan
|
||||||
* @version $Revision: 1.6 $ $Date: 2004/02/28 21:46:45 $
|
* @version $Revision$ $Date$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class LogConfigurationException extends RuntimeException {
|
public class LogConfigurationException extends RuntimeException {
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ import java.util.Properties;
|
|||||||
* @author Craig R. McClanahan
|
* @author Craig R. McClanahan
|
||||||
* @author Costin Manolache
|
* @author Costin Manolache
|
||||||
* @author Richard A. Sitze
|
* @author Richard A. Sitze
|
||||||
* @version $Revision: 1.28 $ $Date$
|
* @version $Revision$ $Date$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public abstract class LogFactory {
|
public abstract class LogFactory {
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ import org.apache.commons.logging.impl.NoOpLog;
|
|||||||
* implementation performs exactly the same algorithm as this class did
|
* implementation performs exactly the same algorithm as this class did
|
||||||
*
|
*
|
||||||
* @author Rod Waldhoff
|
* @author Rod Waldhoff
|
||||||
* @version $Id: LogSource.java,v 1.21 2004/02/28 21:46:45 craigmcc Exp $
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public class LogSource {
|
public class LogSource {
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ import org.apache.commons.logging.Log;
|
|||||||
* However, serializable is not recommended.
|
* However, serializable is not recommended.
|
||||||
* </p>
|
* </p>
|
||||||
* @author <a href="mailto:neeme@apache.org">Neeme Praks</a>
|
* @author <a href="mailto:neeme@apache.org">Neeme Praks</a>
|
||||||
* @version $Revision: 1.10 $ $Date$
|
* @version $Revision$ $Date$
|
||||||
*/
|
*/
|
||||||
public class AvalonLogger implements Log, Serializable {
|
public class AvalonLogger implements Log, Serializable {
|
||||||
|
|
||||||
|
|||||||
@@ -12,272 +12,272 @@
|
|||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package org.apache.commons.logging.impl;
|
package org.apache.commons.logging.impl;
|
||||||
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
import java.util.logging.LogRecord;
|
import java.util.logging.LogRecord;
|
||||||
import java.util.StringTokenizer;
|
import java.util.StringTokenizer;
|
||||||
import java.io.PrintWriter;
|
import java.io.PrintWriter;
|
||||||
import java.io.StringWriter;
|
import java.io.StringWriter;
|
||||||
|
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Implementation of the <code>org.apache.commons.logging.Log</code>
|
* <p>Implementation of the <code>org.apache.commons.logging.Log</code>
|
||||||
* interface that wraps the standard JDK logging mechanisms that are
|
* interface that wraps the standard JDK logging mechanisms that are
|
||||||
* available in SourceForge's Lumberjack for JDKs prior to 1.4.</p>
|
* available in SourceForge's Lumberjack for JDKs prior to 1.4.</p>
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:sanders@apache.org">Scott Sanders</a>
|
* @author <a href="mailto:sanders@apache.org">Scott Sanders</a>
|
||||||
* @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
|
* @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
|
||||||
* @author <a href="mailto:donaldp@apache.org">Peter Donald</a>
|
* @author <a href="mailto:donaldp@apache.org">Peter Donald</a>
|
||||||
* @author <a href="mailto:vince256@comcast.net">Vince Eagen</a>
|
* @author <a href="mailto:vince256@comcast.net">Vince Eagen</a>
|
||||||
* @version $Revision: 1.6 $ $Date: 2004/06/06 21:13:43 $
|
* @version $Revision$ $Date$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class Jdk13LumberjackLogger implements Log, Serializable {
|
public class Jdk13LumberjackLogger implements Log, Serializable {
|
||||||
|
|
||||||
|
|
||||||
// ----------------------------------------------------- Instance Variables
|
// ----------------------------------------------------- Instance Variables
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The underlying Logger implementation we are using.
|
* The underlying Logger implementation we are using.
|
||||||
*/
|
*/
|
||||||
protected transient Logger logger = null;
|
protected transient Logger logger = null;
|
||||||
protected String name = null;
|
protected String name = null;
|
||||||
private String sourceClassName = "unknown";
|
private String sourceClassName = "unknown";
|
||||||
private String sourceMethodName = "unknown";
|
private String sourceMethodName = "unknown";
|
||||||
private boolean classAndMethodFound = false;
|
private boolean classAndMethodFound = false;
|
||||||
|
|
||||||
|
|
||||||
// ----------------------------------------------------------- Constructors
|
// ----------------------------------------------------------- Constructors
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct a named instance of this Logger.
|
* Construct a named instance of this Logger.
|
||||||
*
|
*
|
||||||
* @param name Name of the logger to be constructed
|
* @param name Name of the logger to be constructed
|
||||||
*/
|
*/
|
||||||
public Jdk13LumberjackLogger(String name) {
|
public Jdk13LumberjackLogger(String name) {
|
||||||
|
|
||||||
this.name = name;
|
this.name = name;
|
||||||
logger = getLogger();
|
logger = getLogger();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// --------------------------------------------------------- Public Methods
|
// --------------------------------------------------------- Public Methods
|
||||||
|
|
||||||
|
|
||||||
private void log( Level level, String msg, Throwable ex ) {
|
private void log( Level level, String msg, Throwable ex ) {
|
||||||
if( getLogger().isLoggable(level) ) {
|
if( getLogger().isLoggable(level) ) {
|
||||||
LogRecord record = new LogRecord(level, msg);
|
LogRecord record = new LogRecord(level, msg);
|
||||||
if( !classAndMethodFound ) {
|
if( !classAndMethodFound ) {
|
||||||
getClassAndMethod();
|
getClassAndMethod();
|
||||||
}
|
}
|
||||||
record.setSourceClassName(sourceClassName);
|
record.setSourceClassName(sourceClassName);
|
||||||
record.setSourceMethodName(sourceMethodName);
|
record.setSourceMethodName(sourceMethodName);
|
||||||
if( ex != null ) {
|
if( ex != null ) {
|
||||||
record.setThrown(ex);
|
record.setThrown(ex);
|
||||||
}
|
}
|
||||||
getLogger().log(record);
|
getLogger().log(record);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Gets the class and method by looking at the stack trace for the
|
* <p>Gets the class and method by looking at the stack trace for the
|
||||||
* first entry that is not this class.</p>
|
* first entry that is not this class.</p>
|
||||||
*/
|
*/
|
||||||
private void getClassAndMethod() {
|
private void getClassAndMethod() {
|
||||||
try {
|
try {
|
||||||
Throwable throwable = new Throwable();
|
Throwable throwable = new Throwable();
|
||||||
throwable.fillInStackTrace();
|
throwable.fillInStackTrace();
|
||||||
StringWriter stringWriter = new StringWriter();
|
StringWriter stringWriter = new StringWriter();
|
||||||
PrintWriter printWriter = new PrintWriter( stringWriter );
|
PrintWriter printWriter = new PrintWriter( stringWriter );
|
||||||
throwable.printStackTrace( printWriter );
|
throwable.printStackTrace( printWriter );
|
||||||
String traceString = stringWriter.getBuffer().toString();
|
String traceString = stringWriter.getBuffer().toString();
|
||||||
StringTokenizer tokenizer =
|
StringTokenizer tokenizer =
|
||||||
new StringTokenizer( traceString, "\n" );
|
new StringTokenizer( traceString, "\n" );
|
||||||
tokenizer.nextToken();
|
tokenizer.nextToken();
|
||||||
String line = tokenizer.nextToken();
|
String line = tokenizer.nextToken();
|
||||||
while ( line.indexOf( this.getClass().getName() ) == -1 ) {
|
while ( line.indexOf( this.getClass().getName() ) == -1 ) {
|
||||||
line = tokenizer.nextToken();
|
line = tokenizer.nextToken();
|
||||||
}
|
}
|
||||||
while ( line.indexOf( this.getClass().getName() ) >= 0 ) {
|
while ( line.indexOf( this.getClass().getName() ) >= 0 ) {
|
||||||
line = tokenizer.nextToken();
|
line = tokenizer.nextToken();
|
||||||
}
|
}
|
||||||
int start = line.indexOf( "at " ) + 3;
|
int start = line.indexOf( "at " ) + 3;
|
||||||
int end = line.indexOf( '(' );
|
int end = line.indexOf( '(' );
|
||||||
String temp = line.substring( start, end );
|
String temp = line.substring( start, end );
|
||||||
int lastPeriod = temp.lastIndexOf( '.' );
|
int lastPeriod = temp.lastIndexOf( '.' );
|
||||||
sourceClassName = temp.substring( 0, lastPeriod );
|
sourceClassName = temp.substring( 0, lastPeriod );
|
||||||
sourceMethodName = temp.substring( lastPeriod + 1 );
|
sourceMethodName = temp.substring( lastPeriod + 1 );
|
||||||
} catch ( Exception ex ) {
|
} catch ( Exception ex ) {
|
||||||
// ignore - leave class and methodname unknown
|
// ignore - leave class and methodname unknown
|
||||||
}
|
}
|
||||||
classAndMethodFound = true;
|
classAndMethodFound = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Log a message with debug log level.
|
* Log a message with debug log level.
|
||||||
*/
|
*/
|
||||||
public void debug(Object message) {
|
public void debug(Object message) {
|
||||||
log(Level.FINE, String.valueOf(message), null);
|
log(Level.FINE, String.valueOf(message), null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Log a message and exception with debug log level.
|
* Log a message and exception with debug log level.
|
||||||
*/
|
*/
|
||||||
public void debug(Object message, Throwable exception) {
|
public void debug(Object message, Throwable exception) {
|
||||||
log(Level.FINE, String.valueOf(message), exception);
|
log(Level.FINE, String.valueOf(message), exception);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Log a message with error log level.
|
* Log a message with error log level.
|
||||||
*/
|
*/
|
||||||
public void error(Object message) {
|
public void error(Object message) {
|
||||||
log(Level.SEVERE, String.valueOf(message), null);
|
log(Level.SEVERE, String.valueOf(message), null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Log a message and exception with error log level.
|
* Log a message and exception with error log level.
|
||||||
*/
|
*/
|
||||||
public void error(Object message, Throwable exception) {
|
public void error(Object message, Throwable exception) {
|
||||||
log(Level.SEVERE, String.valueOf(message), exception);
|
log(Level.SEVERE, String.valueOf(message), exception);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Log a message with fatal log level.
|
* Log a message with fatal log level.
|
||||||
*/
|
*/
|
||||||
public void fatal(Object message) {
|
public void fatal(Object message) {
|
||||||
log(Level.SEVERE, String.valueOf(message), null);
|
log(Level.SEVERE, String.valueOf(message), null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Log a message and exception with fatal log level.
|
* Log a message and exception with fatal log level.
|
||||||
*/
|
*/
|
||||||
public void fatal(Object message, Throwable exception) {
|
public void fatal(Object message, Throwable exception) {
|
||||||
log(Level.SEVERE, String.valueOf(message), exception);
|
log(Level.SEVERE, String.valueOf(message), exception);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the native Logger instance we are using.
|
* Return the native Logger instance we are using.
|
||||||
*/
|
*/
|
||||||
public Logger getLogger() {
|
public Logger getLogger() {
|
||||||
if (logger == null) {
|
if (logger == null) {
|
||||||
logger = Logger.getLogger(name);
|
logger = Logger.getLogger(name);
|
||||||
}
|
}
|
||||||
return (logger);
|
return (logger);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Log a message with info log level.
|
* Log a message with info log level.
|
||||||
*/
|
*/
|
||||||
public void info(Object message) {
|
public void info(Object message) {
|
||||||
log(Level.INFO, String.valueOf(message), null);
|
log(Level.INFO, String.valueOf(message), null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Log a message and exception with info log level.
|
* Log a message and exception with info log level.
|
||||||
*/
|
*/
|
||||||
public void info(Object message, Throwable exception) {
|
public void info(Object message, Throwable exception) {
|
||||||
log(Level.INFO, String.valueOf(message), exception);
|
log(Level.INFO, String.valueOf(message), exception);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is debug logging currently enabled?
|
* Is debug logging currently enabled?
|
||||||
*/
|
*/
|
||||||
public boolean isDebugEnabled() {
|
public boolean isDebugEnabled() {
|
||||||
return (getLogger().isLoggable(Level.FINE));
|
return (getLogger().isLoggable(Level.FINE));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is error logging currently enabled?
|
* Is error logging currently enabled?
|
||||||
*/
|
*/
|
||||||
public boolean isErrorEnabled() {
|
public boolean isErrorEnabled() {
|
||||||
return (getLogger().isLoggable(Level.SEVERE));
|
return (getLogger().isLoggable(Level.SEVERE));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is fatal logging currently enabled?
|
* Is fatal logging currently enabled?
|
||||||
*/
|
*/
|
||||||
public boolean isFatalEnabled() {
|
public boolean isFatalEnabled() {
|
||||||
return (getLogger().isLoggable(Level.SEVERE));
|
return (getLogger().isLoggable(Level.SEVERE));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is info logging currently enabled?
|
* Is info logging currently enabled?
|
||||||
*/
|
*/
|
||||||
public boolean isInfoEnabled() {
|
public boolean isInfoEnabled() {
|
||||||
return (getLogger().isLoggable(Level.INFO));
|
return (getLogger().isLoggable(Level.INFO));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is trace logging currently enabled?
|
* Is trace logging currently enabled?
|
||||||
*/
|
*/
|
||||||
public boolean isTraceEnabled() {
|
public boolean isTraceEnabled() {
|
||||||
return (getLogger().isLoggable(Level.FINEST));
|
return (getLogger().isLoggable(Level.FINEST));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is warn logging currently enabled?
|
* Is warn logging currently enabled?
|
||||||
*/
|
*/
|
||||||
public boolean isWarnEnabled() {
|
public boolean isWarnEnabled() {
|
||||||
return (getLogger().isLoggable(Level.WARNING));
|
return (getLogger().isLoggable(Level.WARNING));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Log a message with trace log level.
|
* Log a message with trace log level.
|
||||||
*/
|
*/
|
||||||
public void trace(Object message) {
|
public void trace(Object message) {
|
||||||
log(Level.FINEST, String.valueOf(message), null);
|
log(Level.FINEST, String.valueOf(message), null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Log a message and exception with trace log level.
|
* Log a message and exception with trace log level.
|
||||||
*/
|
*/
|
||||||
public void trace(Object message, Throwable exception) {
|
public void trace(Object message, Throwable exception) {
|
||||||
log(Level.FINEST, String.valueOf(message), exception);
|
log(Level.FINEST, String.valueOf(message), exception);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Log a message with warn log level.
|
* Log a message with warn log level.
|
||||||
*/
|
*/
|
||||||
public void warn(Object message) {
|
public void warn(Object message) {
|
||||||
log(Level.WARNING, String.valueOf(message), null);
|
log(Level.WARNING, String.valueOf(message), null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Log a message and exception with warn log level.
|
* Log a message and exception with warn log level.
|
||||||
*/
|
*/
|
||||||
public void warn(Object message, Throwable exception) {
|
public void warn(Object message, Throwable exception) {
|
||||||
log(Level.WARNING, String.valueOf(message), exception);
|
log(Level.WARNING, String.valueOf(message), exception);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ import org.apache.commons.logging.Log;
|
|||||||
* @author <a href="mailto:sanders@apache.org">Scott Sanders</a>
|
* @author <a href="mailto:sanders@apache.org">Scott Sanders</a>
|
||||||
* @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
|
* @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
|
||||||
* @author <a href="mailto:donaldp@apache.org">Peter Donald</a>
|
* @author <a href="mailto:donaldp@apache.org">Peter Donald</a>
|
||||||
* @version $Revision: 1.13 $ $Date: 2004/06/06 21:10:21 $
|
* @version $Revision$ $Date$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class Jdk14Logger implements Log, Serializable {
|
public class Jdk14Logger implements Log, Serializable {
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ import org.apache.log4j.Level;
|
|||||||
* @author <a href="mailto:sanders@apache.org">Scott Sanders</a>
|
* @author <a href="mailto:sanders@apache.org">Scott Sanders</a>
|
||||||
* @author Rod Waldhoff
|
* @author Rod Waldhoff
|
||||||
* @author Robert Burrell Donkin
|
* @author Robert Burrell Donkin
|
||||||
* @version $Id: Log4JLogger.java,v 1.11 2004/05/19 21:01:23 rdonkin Exp $
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public class Log4JLogger implements Log, Serializable {
|
public class Log4JLogger implements Log, Serializable {
|
||||||
|
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ import org.apache.commons.logging.LogFactory;
|
|||||||
* @author Rod Waldhoff
|
* @author Rod Waldhoff
|
||||||
* @author Craig R. McClanahan
|
* @author Craig R. McClanahan
|
||||||
* @author Richard A. Sitze
|
* @author Richard A. Sitze
|
||||||
* @version $Revision: 1.36 $ $Date: 2004/10/31 17:53:48 $
|
* @version $Revision$ $Date$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class LogFactoryImpl extends LogFactory {
|
public class LogFactoryImpl extends LogFactory {
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ import org.apache.commons.logging.Log;
|
|||||||
*
|
*
|
||||||
* @author <a href="mailto:sanders@apache.org">Scott Sanders</a>
|
* @author <a href="mailto:sanders@apache.org">Scott Sanders</a>
|
||||||
* @author Robert Burrell Donkin
|
* @author Robert Burrell Donkin
|
||||||
* @version $Id: LogKitLogger.java,v 1.9 2004/06/01 19:56:46 rdonkin Exp $
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class LogKitLogger implements Log, Serializable {
|
public class LogKitLogger implements Log, Serializable {
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ import org.apache.commons.logging.Log;
|
|||||||
*
|
*
|
||||||
* @author <a href="mailto:sanders@apache.org">Scott Sanders</a>
|
* @author <a href="mailto:sanders@apache.org">Scott Sanders</a>
|
||||||
* @author Rod Waldhoff
|
* @author Rod Waldhoff
|
||||||
* @version $Id: NoOpLog.java,v 1.8 2004/06/06 21:13:12 rdonkin Exp $
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public class NoOpLog implements Log, Serializable {
|
public class NoOpLog implements Log, Serializable {
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ import org.apache.commons.logging.LogConfigurationException;
|
|||||||
* @author Rod Waldhoff
|
* @author Rod Waldhoff
|
||||||
* @author Robert Burrell Donkin
|
* @author Robert Burrell Donkin
|
||||||
*
|
*
|
||||||
* @version $Id: SimpleLog.java,v 1.21 2004/06/06 20:47:56 rdonkin Exp $
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public class SimpleLog implements Log, Serializable {
|
public class SimpleLog implements Log, Serializable {
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import junit.framework.*;
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Sean C. Sullivan
|
* @author Sean C. Sullivan
|
||||||
* @version $Revision: $
|
* @version $Revision$
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractLogTest extends TestCase {
|
public abstract class AbstractLogTest extends TestCase {
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import junit.framework.TestSuite;
|
|||||||
/**
|
/**
|
||||||
* testcase to emulate container and application isolated from container
|
* testcase to emulate container and application isolated from container
|
||||||
* @author baliuka
|
* @author baliuka
|
||||||
* @version $Id: LoadTest.java,v 1.5 2004/02/28 21:46:45 craigmcc Exp $
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public class LoadTest extends TestCase{
|
public class LoadTest extends TestCase{
|
||||||
//TODO: need some way to add service provider packages
|
//TODO: need some way to add service provider packages
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ import junit.framework.*;
|
|||||||
* coded by James Strachan. </p>
|
* coded by James Strachan. </p>
|
||||||
*
|
*
|
||||||
* @author Robert Burrell Donkin
|
* @author Robert Burrell Donkin
|
||||||
* @version $Revision: 1.7 $
|
* @version $Revision$
|
||||||
*/
|
*/
|
||||||
public class TestAll extends TestCase {
|
public class TestAll extends TestCase {
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ import java.util.List;
|
|||||||
* only the wrapper class itself.</p>
|
* only the wrapper class itself.</p>
|
||||||
*
|
*
|
||||||
* @author Craig R. McClanahan
|
* @author Craig R. McClanahan
|
||||||
* @version $Revision: 1.5 $ $Date: 2004/02/28 21:46:45 $
|
* @version $Revision$ $Date$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class Wrapper {
|
public class Wrapper {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ import junit.framework.TestSuite;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @author <a href="mailto:neeme@apache.org">Neeme Praks</a>
|
* @author <a href="mailto:neeme@apache.org">Neeme Praks</a>
|
||||||
* @version $Revision: 1.4 $ $Date: 2004/02/28 21:46:45 $
|
* @version $Revision$ $Date$
|
||||||
*/
|
*/
|
||||||
public class AvalonLoggerTest extends AbstractLogTest {
|
public class AvalonLoggerTest extends AbstractLogTest {
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ import junit.framework.TestSuite;
|
|||||||
* logger configured per the configuration properties.</p>
|
* logger configured per the configuration properties.</p>
|
||||||
*
|
*
|
||||||
* @author Craig R. McClanahan
|
* @author Craig R. McClanahan
|
||||||
* @version $Revision: 1.9 $ $Date: 2004/02/28 21:46:45 $
|
* @version $Revision$ $Date$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class CustomConfigTestCase extends DefaultConfigTestCase {
|
public class CustomConfigTestCase extends DefaultConfigTestCase {
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ import org.apache.commons.logging.LogFactory;
|
|||||||
* should be automatically configured.</p>
|
* should be automatically configured.</p>
|
||||||
*
|
*
|
||||||
* @author Craig R. McClanahan
|
* @author Craig R. McClanahan
|
||||||
* @version $Revision: 1.8 $ $Date: 2004/02/28 21:46:45 $
|
* @version $Revision$ $Date$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class DefaultConfigTestCase extends TestCase {
|
public class DefaultConfigTestCase extends TestCase {
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import java.util.logging.LogRecord;
|
|||||||
* <p>Test implementation of <code>java.util.logging.Handler</code>.</p>
|
* <p>Test implementation of <code>java.util.logging.Handler</code>.</p>
|
||||||
*
|
*
|
||||||
* @author Craig R. McClanahan
|
* @author Craig R. McClanahan
|
||||||
* @version $Revision: 1.4 $ $Date: 2004/02/28 21:46:45 $
|
* @version $Revision$ $Date$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class TestHandler extends Handler {
|
public class TestHandler extends Handler {
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ import org.apache.log4j.spi.LoggingEvent;
|
|||||||
* logger configured per the configuration properties.</p>
|
* logger configured per the configuration properties.</p>
|
||||||
*
|
*
|
||||||
* @author Craig R. McClanahan
|
* @author Craig R. McClanahan
|
||||||
* @version $Revision: 1.9 $ $Date: 2004/05/19 20:59:56 $
|
* @version $Revision$ $Date$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class CustomConfigTestCase extends DefaultConfigTestCase {
|
public class CustomConfigTestCase extends DefaultConfigTestCase {
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ import org.apache.commons.logging.LogFactory;
|
|||||||
* should be automatically configured).</p>
|
* should be automatically configured).</p>
|
||||||
*
|
*
|
||||||
* @author Craig R. McClanahan
|
* @author Craig R. McClanahan
|
||||||
* @version $Revision: 1.7 $ $Date: 2004/02/28 21:46:46 $
|
* @version $Revision$ $Date$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class DefaultConfigTestCase extends TestCase {
|
public class DefaultConfigTestCase extends TestCase {
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ import org.apache.log4j.spi.LoggingEvent;
|
|||||||
* <p>Test implementation of <code>org.apache.log4j.Appender</code>.</p>
|
* <p>Test implementation of <code>org.apache.log4j.Appender</code>.</p>
|
||||||
*
|
*
|
||||||
* @author Craig R. McClanahan
|
* @author Craig R. McClanahan
|
||||||
* @version $Revision: 1.4 $ $Date: 2004/02/28 21:46:46 $
|
* @version $Revision$ $Date$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class TestAppender extends AppenderSkeleton {
|
public class TestAppender extends AppenderSkeleton {
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ import org.apache.commons.logging.impl.SimpleLog;
|
|||||||
* properties.</p>
|
* properties.</p>
|
||||||
*
|
*
|
||||||
* @author Craig R. McClanahan
|
* @author Craig R. McClanahan
|
||||||
* @version $Revision: 1.6 $ $Date: 2004/05/30 10:32:25 $
|
* @version $Revision$ $Date$
|
||||||
*/
|
*/
|
||||||
public class CustomConfigTestCase extends DefaultConfigTestCase {
|
public class CustomConfigTestCase extends DefaultConfigTestCase {
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ import org.apache.commons.logging.impl.SimpleLog;
|
|||||||
* other than selecting the SimpleLog implementation.</p>
|
* other than selecting the SimpleLog implementation.</p>
|
||||||
*
|
*
|
||||||
* @author Craig R. McClanahan
|
* @author Craig R. McClanahan
|
||||||
* @version $Revision: 1.5 $ $Date: 2004/05/29 10:43:35 $
|
* @version $Revision$ $Date$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class DefaultConfigTestCase extends TestCase {
|
public class DefaultConfigTestCase extends TestCase {
|
||||||
|
|||||||
Reference in New Issue
Block a user