public class BufferredLogger extends BasicLogger
Modifier and Type | Field and Description |
---|---|
protected Integer |
bufferSize |
protected static int |
DEFAULT_LOG_BUFFER_LENGTH |
protected ReentrantReadWriteLock |
lock |
protected LinkedList<String> |
logStack |
bufferActive, javaLogger
Constructor and Description |
---|
BufferredLogger(org.apache.commons.logging.Log javaLogger) |
BufferredLogger(org.apache.commons.logging.Log javaLogger,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
void |
debug(String message) |
void |
debug(String message,
Throwable t) |
void |
error(String message) |
void |
error(String message,
Throwable t) |
String |
getLoggerBuffer(String sep) |
protected int |
getMaxStackLen() |
void |
info(String message) |
protected void |
logInStack(String level,
String message) |
void |
warn(String message) |
getLoggerBuffer, isBufferActive, setBufferActive
protected ReentrantReadWriteLock lock
protected static int DEFAULT_LOG_BUFFER_LENGTH
protected Integer bufferSize
protected LinkedList<String> logStack
public BufferredLogger(org.apache.commons.logging.Log javaLogger)
public BufferredLogger(org.apache.commons.logging.Log javaLogger, int bufferSize)
protected int getMaxStackLen()
protected void logInStack(String level, String message)
public String getLoggerBuffer(String sep)
getLoggerBuffer
in interface ImporterLogger
getLoggerBuffer
in class BasicLogger
public void info(String message)
info
in interface ImporterLogger
info
in class BasicLogger
public void warn(String message)
warn
in interface ImporterLogger
warn
in class BasicLogger
public void debug(String message)
debug
in interface ImporterLogger
debug
in class BasicLogger
public void debug(String message, Throwable t)
debug
in interface ImporterLogger
debug
in class BasicLogger
public void error(String message)
error
in interface ImporterLogger
error
in class BasicLogger
public void error(String message, Throwable t)
error
in interface ImporterLogger
error
in class BasicLogger
Copyright © 2015 Nuxeo SA. All rights reserved.