org.apache.avalon.excalibur.testcase
Class BufferedLogger

java.lang.Object
  extended byorg.apache.avalon.excalibur.testcase.BufferedLogger
All Implemented Interfaces:
Logger

Deprecated. ECM is no longer supported

public class BufferedLogger
extends java.lang.Object
implements Logger

Simple Logger which logs all information to an internal StringBuffer. When logging is complete call toString() on the logger to obtain the logged output. Useful for testing.

Since:
4.0
Version:
CVS $Revision: 1.4 $ $Date: 2004/02/28 11:47:27 $
Author:
Avalon Development Team

Constructor Summary
BufferedLogger()
          Deprecated.  
 
Method Summary
 void debug(java.lang.String message)
          Deprecated. Log a debug message.
 void debug(java.lang.String message, java.lang.Throwable throwable)
          Deprecated. Log a debug message.
 void error(java.lang.String message)
          Deprecated. Log a error message.
 void error(java.lang.String message, java.lang.Throwable throwable)
          Deprecated. Log a error message.
 void fatalError(java.lang.String message)
          Deprecated. Log a fatalError message.
 void fatalError(java.lang.String message, java.lang.Throwable throwable)
          Deprecated. Log a fatalError message.
 Logger getChildLogger(java.lang.String name)
          Deprecated. Create a new child logger.
 void info(java.lang.String message)
          Deprecated. Log a info message.
 void info(java.lang.String message, java.lang.Throwable throwable)
          Deprecated. Log a info message.
 boolean isDebugEnabled()
          Deprecated. Determine if messages of priority "debug" will be logged.
 boolean isErrorEnabled()
          Deprecated. Determine if messages of priority "error" will be logged.
 boolean isFatalErrorEnabled()
          Deprecated. Determine if messages of priority "fatalError" will be logged.
 boolean isInfoEnabled()
          Deprecated. Determine if messages of priority "info" will be logged.
 boolean isWarnEnabled()
          Deprecated. Determine if messages of priority "warn" will be logged.
 java.lang.String toString()
          Deprecated. Returns the contents of the buffer.
 void warn(java.lang.String message)
          Deprecated. Log a warn message.
 void warn(java.lang.String message, java.lang.Throwable throwable)
          Deprecated. Log a warn message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BufferedLogger

public BufferedLogger()
Deprecated. 
Method Detail

debug

public void debug(java.lang.String message)
Deprecated. 
Log a debug message.

Specified by:
debug in interface Logger
Parameters:
message - the message

debug

public void debug(java.lang.String message,
                  java.lang.Throwable throwable)
Deprecated. 
Log a debug message.

Specified by:
debug in interface Logger
Parameters:
message - the message
throwable - the throwable

isDebugEnabled

public boolean isDebugEnabled()
Deprecated. 
Determine if messages of priority "debug" will be logged.

Specified by:
isDebugEnabled in interface Logger
Returns:
true if "debug" messages will be logged

info

public void info(java.lang.String message)
Deprecated. 
Log a info message.

Specified by:
info in interface Logger
Parameters:
message - the message

info

public void info(java.lang.String message,
                 java.lang.Throwable throwable)
Deprecated. 
Log a info message.

Specified by:
info in interface Logger
Parameters:
message - the message
throwable - the throwable

isInfoEnabled

public boolean isInfoEnabled()
Deprecated. 
Determine if messages of priority "info" will be logged.

Specified by:
isInfoEnabled in interface Logger
Returns:
true if "info" messages will be logged

warn

public void warn(java.lang.String message)
Deprecated. 
Log a warn message.

Specified by:
warn in interface Logger
Parameters:
message - the message

warn

public void warn(java.lang.String message,
                 java.lang.Throwable throwable)
Deprecated. 
Log a warn message.

Specified by:
warn in interface Logger
Parameters:
message - the message
throwable - the throwable

isWarnEnabled

public boolean isWarnEnabled()
Deprecated. 
Determine if messages of priority "warn" will be logged.

Specified by:
isWarnEnabled in interface Logger
Returns:
true if "warn" messages will be logged

error

public void error(java.lang.String message)
Deprecated. 
Log a error message.

Specified by:
error in interface Logger
Parameters:
message - the message

error

public void error(java.lang.String message,
                  java.lang.Throwable throwable)
Deprecated. 
Log a error message.

Specified by:
error in interface Logger
Parameters:
message - the message
throwable - the throwable

isErrorEnabled

public boolean isErrorEnabled()
Deprecated. 
Determine if messages of priority "error" will be logged.

Specified by:
isErrorEnabled in interface Logger
Returns:
true if "error" messages will be logged

fatalError

public void fatalError(java.lang.String message)
Deprecated. 
Log a fatalError message.

Specified by:
fatalError in interface Logger
Parameters:
message - the message

fatalError

public void fatalError(java.lang.String message,
                       java.lang.Throwable throwable)
Deprecated. 
Log a fatalError message.

Specified by:
fatalError in interface Logger
Parameters:
message - the message
throwable - the throwable

isFatalErrorEnabled

public boolean isFatalErrorEnabled()
Deprecated. 
Determine if messages of priority "fatalError" will be logged.

Specified by:
isFatalErrorEnabled in interface Logger
Returns:
true if "fatalError" messages will be logged

getChildLogger

public Logger getChildLogger(java.lang.String name)
Deprecated. 
Create a new child logger. The name of the child logger is [current-loggers-name].[passed-in-name]

Specified by:
getChildLogger in interface Logger
Parameters:
name - the subname of this logger
Returns:
the new logger

toString

public java.lang.String toString()
Deprecated. 
Returns the contents of the buffer.

Returns:
the buffer contents


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.