org.apache.ojb.broker.util.logging
Class StringBufferLoggerImpl
java.lang.Object
org.apache.ojb.broker.util.logging.PoorMansLoggerImpl
org.apache.ojb.broker.util.logging.StringBufferLoggerImpl
- All Implemented Interfaces:
- org.apache.ojb.broker.util.configuration.Configurable, Logger, java.io.Serializable
- 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
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 |
StringBufferLoggerImpl
public StringBufferLoggerImpl(java.lang.String name)
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 - 2005 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