org.apache.ojb.broker.util.logging
Class StringBufferLoggerImpl

java.lang.Object
  extended by org.apache.ojb.broker.util.logging.PoorMansLoggerImpl
      extended by org.apache.ojb.broker.util.logging.StringBufferLoggerImpl
All Implemented Interfaces:
java.io.Serializable, org.apache.ojb.broker.util.configuration.Configurable, Logger

public class StringBufferLoggerImpl
extends PoorMansLoggerImpl

This class is a Logger implementation based on a StringBuffer. All logging method calls are written in the buffer. With method flushLogBuffer() the buffer will be cleared and the buffered log statements returned as string.

Version:
$Id: StringBufferLoggerImpl.java 365232 2005-12-21 22:36:07Z tomdz $
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.ojb.broker.util.logging.Logger
DEBUG, ERROR, FATAL, INFO, serialVersionUID, WARN
 
Constructor Summary
StringBufferLoggerImpl(java.lang.String name)
           
 
Method Summary
 java.lang.String flushLogBuffer()
          Returns all buffered log statements as string and clear the buffer.
 boolean isErrorLog()
          Returns true if one or more error/fatal log method calls have been logged in the buffer.
 
Methods inherited from class org.apache.ojb.broker.util.logging.PoorMansLoggerImpl
configure, debug, debug, error, error, fatal, fatal, getName, info, info, isDebugEnabled, isEnabledFor, safeDebug, safeDebug, safeError, safeError, safeFatal, safeFatal, safeInfo, safeInfo, safeWarn, safeWarn, setLevel, warn, warn
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringBufferLoggerImpl

public StringBufferLoggerImpl(java.lang.String name)
Method Detail

isErrorLog

public boolean isErrorLog()
Returns true if one or more error/fatal log method calls have been logged in the buffer.


flushLogBuffer

public java.lang.String flushLogBuffer()
Returns all buffered log statements as string and clear the buffer.



(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30