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:
- Serializable, 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,v 1.1 2007-08-24 22:17:32 ewestfal Exp $
- See Also:
- Serialized Form
| Fields inherited from class org.apache.ojb.broker.util.logging.PoorMansLoggerImpl |
BRAKE_CLOSE, BRAKE_OPEN, STR_DEBUG, STR_DEBUG_MSG, STR_ERROR, STR_ERROR_MSG, STR_FATAL, STR_FATAL_MSG, STR_INFO, STR_INFO_MSG, STR_WARN, STR_WARN_MSG |
| Methods inherited from class org.apache.ojb.broker.util.logging.PoorMansLoggerImpl |
configure, debug, debug, error, error, fatal, fatal, getLevel, 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EOL
protected String EOL
StringBufferLoggerImpl
public StringBufferLoggerImpl(String name)
log
protected void log(String aLevel,
Object obj,
Throwable t)
- Log all statements in a
StringBuffer.
- Overrides:
log in class PoorMansLoggerImpl
isErrorLog
public boolean isErrorLog()
- Returns true if one or more error/fatal log method calls
have been logged in the buffer.
flushLogBuffer
public String flushLogBuffer()
- Returns all buffered log statements as string and clear the buffer.
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.